Sfoglia il codice sorgente

config: remove unused map

Xiang Li 11 anni fa
parent
commit
a88f077348
1 ha cambiato i file con 0 aggiunte e 24 eliminazioni
  1. 0 24
      config/config.go

+ 0 - 24
config/config.go

@@ -23,30 +23,6 @@ import (
 // The default location for the etcd configuration file.
 const DefaultSystemConfigPath = "/etc/etcd/etcd.conf"
 
-// A lookup of deprecated flags to their new flag name.
-var newFlagNameLookup = map[string]string{
-	"C":                      "peers",
-	"CF":                     "peers-file",
-	"n":                      "name",
-	"c":                      "addr",
-	"cl":                     "bind-addr",
-	"s":                      "peer-addr",
-	"sl":                     "peer-bind-addr",
-	"d":                      "data-dir",
-	"m":                      "max-result-buffer",
-	"r":                      "max-retry-attempts",
-	"maxsize":                "cluster-active-size",
-	"clientCAFile":           "ca-file",
-	"clientCert":             "cert-file",
-	"clientKey":              "key-file",
-	"serverCAFile":           "peer-ca-file",
-	"serverCert":             "peer-cert-file",
-	"serverKey":              "peer-key-file",
-	"snapshotCount":          "snapshot-count",
-	"peer-heartbeat-timeout": "peer-heartbeat-interval",
-	"max-cluster-size":       "cluster-active-size",
-}
-
 // Config represents the server configuration.
 type Config struct {
 	SystemPath string