mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
swarm/storage: remove commented out code
This commit is contained in:
parent
1c3597f26a
commit
c556410993
2 changed files with 0 additions and 5 deletions
|
|
@ -78,10 +78,6 @@ func NewTestLocalStoreForAddr(path string, basekey []byte) (*LocalStore, error)
|
||||||
return localStore, nil
|
return localStore, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//func (self *LocalStore) CacheCounter() uint64 {
|
|
||||||
//return uint64(self.memStore.Counter())
|
|
||||||
//}
|
|
||||||
|
|
||||||
// LocalStore is itself a chunk store
|
// LocalStore is itself a chunk store
|
||||||
// unsafe, in that the data is not integrity checked
|
// unsafe, in that the data is not integrity checked
|
||||||
func (self *LocalStore) Put(chunk *Chunk) {
|
func (self *LocalStore) Put(chunk *Chunk) {
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,6 @@ func (s *MemStore) removeOldest() {
|
||||||
defer metrics.GetOrRegisterResettingTimer("memstore.purge", metrics.DefaultRegistry).UpdateSince(time.Now())
|
defer metrics.GetOrRegisterResettingTimer("memstore.purge", metrics.DefaultRegistry).UpdateSince(time.Now())
|
||||||
|
|
||||||
node := s.memtree
|
node := s.memtree
|
||||||
log.Warn("purge memstore")
|
|
||||||
for node.entry == nil {
|
for node.entry == nil {
|
||||||
|
|
||||||
aidx := uint(0)
|
aidx := uint(0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue