diff options
author | Daniel Nephin <dnephin@docker.com> | 2017-08-21 17:51:45 -0400 |
---|---|---|
committer | Daniel Nephin <dnephin@docker.com> | 2017-08-21 18:18:50 -0400 |
commit | 62c1f0ef41e6cd88a8846da1c11976a320ca8b41 (patch) | |
tree | 7b593ee24dc00d7fd7296606b64a1dbdc6d2ccf0 /client/transport.go | |
parent | 372670b5074b077927314cdf46af30f8752e7db0 (diff) | |
download | docker-62c1f0ef41e6cd88a8846da1c11976a320ca8b41.tar.gz |
Add deadcode linter
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Diffstat (limited to 'client/transport.go')
-rw-r--r-- | client/transport.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/client/transport.go b/client/transport.go index 401ab15d30..73f6ef7b4d 100644 --- a/client/transport.go +++ b/client/transport.go @@ -5,14 +5,6 @@ import ( "net/http" ) -// transportFunc allows us to inject a mock transport for testing. We define it -// here so we can detect the tlsconfig and return nil for only this type. -type transportFunc func(*http.Request) (*http.Response, error) - -func (tf transportFunc) RoundTrip(req *http.Request) (*http.Response, error) { - return tf(req) -} - // resolveTLSConfig attempts to resolve the TLS configuration from the // RoundTripper. func resolveTLSConfig(transport http.RoundTripper) *tls.Config { |