mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: remove unused containsUint64()
This commit is contained in:
parent
e056e96ad5
commit
3dcd66459d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user