From d653c5f8115fa0249fd439ba041d541056dcfbaa Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 8 Sep 2022 12:27:53 -0700 Subject: [PATCH] unused --- weed/shell/command_volume_balance.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go index 6ba376d2c..ae3d0b556 100644 --- a/weed/shell/command_volume_balance.go +++ b/weed/shell/command_volume_balance.go @@ -230,12 +230,6 @@ func sortWritableVolumes(volumes []*master_pb.VolumeInformationMessage) { }) } -func sortReadOnlyVolumes(volumes []*master_pb.VolumeInformationMessage) { - slices.SortFunc(volumes, func(a, b *master_pb.VolumeInformationMessage) bool { - return a.Id < b.Id - }) -} - func balanceSelectedVolume(commandEnv *CommandEnv, diskType types.DiskType, volumeReplicas map[uint32][]*VolumeReplica, nodes []*Node, capacityFunc CapacityFunc, sortCandidatesFn func(volumes []*master_pb.VolumeInformationMessage), applyBalancing bool) (err error) { selectedVolumeCount, volumeMaxCount := 0, 0 var nodesWithCapacity []*Node