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 {
84 }
85}
86
87func copyResponse(src Response) Response { 88 dst := Response{
89 PathExpression: src.PathExpression,
90 ReplyDelayMS: src.ReplyDelayMS,
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
10 '@': struct{}{},
11}
12
13func byteAllowedInName(b byte) bool { 14 _, ok := allowedCharactersInMetricName[b]
15 return ok
16}
5 "unicode/utf8"
6)
7
8var allowedCharactersInMetricName = map[byte]struct{}{ 9 '=': struct{}{},
10 '@': struct{}{},
11}
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.