go-graphite / carbonapi

Unused code SCC-U1000
Bug risk
Major
9 days ago4 years old
func copyMap is unused
105	return dst
106}
107
108func copyMap(src map[string]Response) map[string]Response {109	dst := make(map[string]Response)
110
111	for k, v := range src {
func copyResponse is unused
 84	}
 85}
 86
 87func copyResponse(src Response) Response { 88	dst := Response{
 89		PathExpression: src.PathExpression,
 90		ReplyDelayMS:   src.ReplyDelayMS,
field evaluator is unused
111	FunctionsFilenames        map[string][]string
112	RewriteFunctionsFilenames map[string][]string
113
114	evaluator interfaces.Evaluator115}
116
117// FunctionMD is actual global variable that stores metadata
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}