gerrit: remove superfluous setRequest
diff --git a/gerrit/server.go b/gerrit/server.go
index bf38338..e6e5409 100644
--- a/gerrit/server.go
+++ b/gerrit/server.go
@@ -44,16 +44,12 @@
}
g.Client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
- g.setRequest(req)
return nil
}
return g
}
-func (g *Server) setRequest(req *http.Request) {
-}
-
func (g *Server) GetPath(p string) ([]byte, error) {
u := g.URL
u.Path = path.Join(u.Path, p)
@@ -108,7 +104,6 @@
if err != nil {
return nil, err
}
- g.setRequest(req)
req.Header.Set("Content-Type", contentType)
rep, err := g.Do(req)
if err != nil {