fix: use unused cacheMetrics code in prometheus (#9588)

remove all other unusued/deadcode
This commit is contained in:
Harshavardhana
2020-05-13 08:15:26 -07:00
committed by GitHub
parent 2ecf5ba1de
commit 6ac48a65cb
19 changed files with 4 additions and 195 deletions

View File

@@ -578,13 +578,6 @@ func restQueries(keys ...string) []string {
return accumulator
}
// Reverse the input order of a slice of string
func reverseStringSlice(input []string) {
for left, right := 0, len(input)-1; left < right; left, right = left+1, right-1 {
input[left], input[right] = input[right], input[left]
}
}
// lcp finds the longest common prefix of the input strings.
// It compares by bytes instead of runes (Unicode code points).
// It's up to the caller to do Unicode normalization if desired