Skip to content

Commit 7e9cd5d

Browse files
clsungrakyll
authored andcommitted
oauth2: remove mockCache since NewTransportFromTokenStore() removed.
Since NewTransportFromTokenStore() is removed, mockCache is therefore useless. It should be safe to remove it, too. Change-Id: I5678684af31e5de75e420b28d859e33909e0a718 Reviewed-on: https://go-review.googlesource.com/22113 Reviewed-by: Jaana Burcu Dogan <[email protected]>
1 parent b0e2337 commit 7e9cd5d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

oauth2_test.go

-13
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ func (t *mockTransport) RoundTrip(req *http.Request) (resp *http.Response, err e
2828
return t.rt(req)
2929
}
3030

31-
type mockCache struct {
32-
token *Token
33-
readErr error
34-
}
35-
36-
func (c *mockCache) ReadToken() (*Token, error) {
37-
return c.token, c.readErr
38-
}
39-
40-
func (c *mockCache) WriteToken(*Token) {
41-
// do nothing
42-
}
43-
4431
func newConf(url string) *Config {
4532
return &Config{
4633
ClientID: "CLIENT_ID",

0 commit comments

Comments
 (0)