etcdserver: remove unused containsUint64()

This commit is contained in:
Xiang Li 2014-12-26 10:56:56 -08:00
parent e056e96ad5
commit 3dcd66459d

View File

@ -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
}