*: clean up unused vars, functions

With help from https://github.com/dominikh/go-unused.
IsNetTimeoutError seems useful, so moved to pkg/netutil.
This commit is contained in:
Gyu-Ho Lee
2016-04-06 21:33:55 -07:00
parent 7408bc2504
commit 6e6d64fb9b
10 changed files with 11 additions and 36 deletions

View File

@@ -15,7 +15,6 @@
package v2http
import (
"errors"
"math"
"net/http"
"strings"
@@ -35,9 +34,8 @@ const (
)
var (
plog = capnslog.NewPackageLogger("github.com/coreos/etcd/etcdserver/api", "v2http")
mlog = logutil.NewMergeLogger(plog)
errClosed = errors.New("v2http: client closed connection")
plog = capnslog.NewPackageLogger("github.com/coreos/etcd/etcdserver/api", "v2http")
mlog = logutil.NewMergeLogger(plog)
)
// writeError logs and writes the given Error to the ResponseWriter