Browse Source

etcdserver: remove unused containsUint64()

Xiang Li 11 years ago
parent
commit
3dcd66459d
1 changed files with 3 additions and 12 deletions
  1. 3 12
      etcdserver/server.go

+ 3 - 12
etcdserver/server.go

@@ -137,7 +137,9 @@ type EtcdServer struct {
 
 	node        raft.Node
 	raftStorage *raft.MemoryStorage
-	store       store.Store
+	storage     Storage
+
+	store store.Store
 
 	stats  *stats.ServerStats
 	lstats *stats.LeaderStats
@@ -148,8 +150,6 @@ type EtcdServer struct {
 	// panic.
 	sendhub SendHub
 
-	storage Storage
-
 	Ticker     <-chan time.Time
 	SyncTicker <-chan time.Time
 
@@ -1002,12 +1002,3 @@ func getBool(v *bool) (vv bool, set bool) {
 	}
 	return *v, true
 }
-
-func containsUint64(a []uint64, x uint64) bool {
-	for _, v := range a {
-		if v == x {
-			return true
-		}
-	}
-	return false
-}