func byteAllowedInName is unused
10 '@': struct{}{},
11}
12
13func byteAllowedInName(b byte) bool { 14 _, ok := allowedCharactersInMetricName[b]
15 return ok
16}
var allowedCharactersInMetricName is unused
5 "unicode/utf8"
6)
7
8var allowedCharactersInMetricName = map[byte]struct{}{ 9 '=': struct{}{},
10 '@': struct{}{},
11}
Description
It is recommended to keep the codebase clean by removing unused code.
This part of the code has not been used anywhere in the project and is not exported. Maybe it was mistakenly left behind while refactoring or was intended to be used somewhere but remained unused by mistake.