Skip to content

Commit dfa25a8

Browse files
authored
Merge branch 'master' into grzkv/context_cancellation_fix_concurrency_improvement
2 parents c3f5fc3 + 4b7f5b8 commit dfa25a8

File tree

5 files changed

+0
-1306
lines changed

5 files changed

+0
-1306
lines changed

app/carbonapi/app.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ func (app *App) deferredAccessLogging(r *http.Request, accessLogDetails *carbona
426426
}
427427
}
428428

429-
var graphTemplates map[string]png.PictureParams
430429
var timeBuckets []int64
431430
var expTimeBuckets []int64
432431

app/carbonapi/http_handlers.go

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,62 +1130,3 @@ func buildParseErrorString(target, e string, err error) string {
11301130
}
11311131
return msg
11321132
}
1133-
1134-
type treejson struct {
1135-
AllowChildren int `json:"allowChildren"`
1136-
Expandable int `json:"expandable"`
1137-
Leaf int `json:"leaf"`
1138-
ID string `json:"id"`
1139-
Text string `json:"text"`
1140-
Context map[string]int `json:"context"` // unused
1141-
}
1142-
1143-
var treejsonContext = make(map[string]int)
1144-
1145-
func findTreejson(globs dataTypes.Matches) ([]byte, error) {
1146-
var b bytes.Buffer
1147-
1148-
var tree = make([]treejson, 0)
1149-
1150-
seen := make(map[string]struct{})
1151-
1152-
basepath := globs.Name
1153-
1154-
if i := strings.LastIndex(basepath, "."); i != -1 {
1155-
basepath = basepath[:i+1]
1156-
} else {
1157-
basepath = ""
1158-
}
1159-
1160-
for _, g := range globs.Matches {
1161-
1162-
name := g.Path
1163-
1164-
if i := strings.LastIndex(name, "."); i != -1 {
1165-
name = name[i+1:]
1166-
}
1167-
1168-
if _, ok := seen[name]; ok {
1169-
continue
1170-
}
1171-
seen[name] = struct{}{}
1172-
1173-
t := treejson{
1174-
ID: basepath + name,
1175-
Context: treejsonContext,
1176-
Text: name,
1177-
}
1178-
1179-
if g.IsLeaf {
1180-
t.Leaf = 1
1181-
} else {
1182-
t.AllowChildren = 1
1183-
t.Expandable = 1
1184-
}
1185-
1186-
tree = append(tree, t)
1187-
}
1188-
1189-
err := json.NewEncoder(&b).Encode(tree)
1190-
return b.Bytes(), err
1191-
}

zipper/benchmark_test.go

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)