From bcff71167c24c8f8c54eb44a232a4c979a8f5b8e Mon Sep 17 00:00:00 2001 From: Asim Date: Thu, 26 Nov 2015 16:51:39 +0000 Subject: [PATCH] Remove unused roundtripper code --- client/rpc_client.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/client/rpc_client.go b/client/rpc_client.go index 5a6c8043..7b6c1ffd 100644 --- a/client/rpc_client.go +++ b/client/rpc_client.go @@ -3,7 +3,6 @@ package client import ( "encoding/json" "fmt" - "net/http" "sync" "github.com/micro/go-micro/broker" @@ -18,10 +17,6 @@ import ( "golang.org/x/net/context" ) -type headerRoundTripper struct { - r http.RoundTripper -} - type rpcClient struct { once sync.Once opts options @@ -56,11 +51,6 @@ func newRpcClient(opt ...Option) Client { } } -func (t *headerRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) { - r.Header.Set("X-Client-Version", "1.0") - return t.r.RoundTrip(r) -} - func (r *rpcClient) codecFunc(contentType string) (codecFunc, error) { if cf, ok := r.opts.codecs[contentType]; ok { return codecWrap(cf), nil