mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: 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:
@@ -41,10 +41,6 @@ type UserRoles struct {
|
||||
Roles []Role `json:"roles"`
|
||||
}
|
||||
|
||||
type userName struct {
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
func v2AuthURL(ep url.URL, action string, name string) *url.URL {
|
||||
if name != "" {
|
||||
ep.Path = path.Join(ep.Path, defaultV2AuthPrefix, action, name)
|
||||
|
||||
@@ -1246,7 +1246,6 @@ func TestHTTPKeysAPIGetResponse(t *testing.T) {
|
||||
func TestHTTPKeysAPIDeleteAction(t *testing.T) {
|
||||
tests := []struct {
|
||||
key string
|
||||
value string
|
||||
opts *DeleteOptions
|
||||
wantAction httpAction
|
||||
}{
|
||||
|
||||
Reference in New Issue
Block a user