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 <jbd@google.com>
This commit is contained in:
Cheng-Lung Sung 2016-04-16 00:12:18 +08:00 committed by Jaana Burcu Dogan
parent b0e2337fe6
commit 7e9cd5d595
1 changed files with 0 additions and 13 deletions

View File

@ -28,19 +28,6 @@ func (t *mockTransport) RoundTrip(req *http.Request) (resp *http.Response, err e
return t.rt(req) return t.rt(req)
} }
type mockCache struct {
token *Token
readErr error
}
func (c *mockCache) ReadToken() (*Token, error) {
return c.token, c.readErr
}
func (c *mockCache) WriteToken(*Token) {
// do nothing
}
func newConf(url string) *Config { func newConf(url string) *Config {
return &Config{ return &Config{
ClientID: "CLIENT_ID", ClientID: "CLIENT_ID",