Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: milo/appengine/console/console.go

Issue 2937123004: [milo] remove unused code. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « milo/appengine/backend/git/collector.go ('k') | milo/appengine/model/doc.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package console 5 package console
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "net/http" 9 "net/http"
10 "strings" 10 "strings"
11 11
12 "golang.org/x/net/context"
13
12 "github.com/luci/luci-go/common/clock" 14 "github.com/luci/luci-go/common/clock"
13 "github.com/luci/luci-go/common/logging" 15 "github.com/luci/luci-go/common/logging"
14 "github.com/luci/luci-go/milo/api/resp" 16 "github.com/luci/luci-go/milo/api/resp"
15 "github.com/luci/luci-go/milo/appengine/backend/git" 17 "github.com/luci/luci-go/milo/appengine/backend/git"
16 "github.com/luci/luci-go/milo/appengine/buildbot" 18 "github.com/luci/luci-go/milo/appengine/buildbot"
17 "github.com/luci/luci-go/milo/appengine/common" 19 "github.com/luci/luci-go/milo/appengine/common"
18 "github.com/luci/luci-go/milo/common/config" 20 "github.com/luci/luci-go/milo/common/config"
19 "github.com/luci/luci-go/server/router" 21 "github.com/luci/luci-go/server/router"
20 "golang.org/x/net/context"
21 ) 22 )
22 23
23 // Returns results of build[commit_index][builder_index] 24 // Returns results of build[commit_index][builder_index]
24 func GetConsoleBuilds( 25 func GetConsoleBuilds(
25 c context.Context, module string, 26 c context.Context, module string,
26 builders []resp.BuilderRef, commits []string) ( 27 builders []resp.BuilderRef, commits []string) (
27 [][]*resp.ConsoleBuild, error) { 28 [][]*resp.ConsoleBuild, error) {
28 29
29 switch module { 30 switch module {
30 case "buildbot": 31 case "buildbot":
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 98 }
98 99
99 cs := &resp.Console{ 100 cs := &resp.Console{
100 Name: def.Name, 101 Name: def.Name,
101 Commit: ccb, 102 Commit: ccb,
102 BuilderRef: builders, 103 BuilderRef: builders,
103 } 104 }
104 105
105 return cs, nil 106 return cs, nil
106 } 107 }
OLDNEW
« no previous file with comments | « milo/appengine/backend/git/collector.go ('k') | milo/appengine/model/doc.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698