Skip to content

Commit d6d224a

Browse files
committed
remove unused mass fiter func
1 parent 31dafdb commit d6d224a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

internal/metadata/rpc_handler.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -623,13 +623,3 @@ func IsDeletionCandidate(id int32, ids []int32) bool {
623623
i := sort.Search(len(ids), func(i int) bool { return ids[i] >= id })
624624
return i < len(ids) && ids[i] == id
625625
}
626-
627-
func (h *Handler) FilterDeletionCandidates(mappings []tlstatshouse.Mapping) []tlstatshouse.Mapping {
628-
buf := make([]tlstatshouse.Mapping, 0, 100)
629-
for _, mapping := range mappings {
630-
if !h.IsDeletionCandidate(mapping.Value) {
631-
buf = append(buf, mapping)
632-
}
633-
}
634-
return buf
635-
}

0 commit comments

Comments
 (0)