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

Unified Diff: service/info/wrapper.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: service/info/wrapper.go
diff --git a/service/info/wrapper.go b/service/info/wrapper.go
deleted file mode 100644
index 76f84af2f7e592dc19bc947994af05b6c420ab22..0000000000000000000000000000000000000000
--- a/service/info/wrapper.go
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2016 The LUCI Authors. All rights reserved.
-// Use of this source code is governed under the Apache License, Version 2.0
-// that can be found in the LICENSE file.
-
-package info
-
-import (
- "strings"
-
- "golang.org/x/net/context"
-)
-
-type infoImpl struct {
- RawInterface
-}
-
-var _ Interface = infoImpl{}
-
-func (i infoImpl) MustNamespace(namespace string) context.Context {
- ret, err := i.Namespace(namespace)
- if err != nil {
- panic(err)
- }
- return ret
-}
-
-func (i infoImpl) TrimmedAppID() string {
- toks := strings.Split(i.AppID(), ":")
- return toks[len(toks)-1]
-}

Powered by Google App Engine
This is Rietveld 408576698