Skip to content

Commit 2685270

Browse files
committed
chore: drop dead code
1 parent 1eef4f6 commit 2685270

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

internal/controller/load_state.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,6 @@ func (r *reconcileState) partOfUpdateReplicantSet(pod *corev1.Pod, instance *crd
133133
return false
134134
}
135135

136-
func (r *reconcileState) areCoresAvailable(instance *crd.EMQX) bool {
137-
coreSet := r.coreSet()
138-
if coreSet == nil {
139-
return false
140-
}
141-
return coreSet.Status.AvailableReplicas >= instance.Spec.NumCoreReplicas()
142-
}
143-
144136
func (r *reconcileState) areReplicantsAvailable(instance *crd.EMQX) bool {
145137
desired := instance.Spec.NumReplicantReplicas()
146138
if desired == 0 {

0 commit comments

Comments
 (0)