diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-12-24 00:31:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-24 00:31:32 +0800 |
commit | 9e9fc87e70accf2b81be8772ab2ab0c914e95666 (patch) | |
tree | 410ccdefb083b08796a14ac03653a5319e9895d7 /swarm/storage/database.go | |
parent | 335760bf0674ee553f3ca65afd6f29b6557d1b55 (diff) | |
download | dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.gz dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.bz2 dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.lz dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.xz dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.zst dexon-9e9fc87e70accf2b81be8772ab2ab0c914e95666.zip |
swarm: remove unused/dead code (#18351)
Diffstat (limited to 'swarm/storage/database.go')
-rw-r--r-- | swarm/storage/database.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/swarm/storage/database.go b/swarm/storage/database.go index e25fce31f..12367b905 100644 --- a/swarm/storage/database.go +++ b/swarm/storage/database.go @@ -64,16 +64,6 @@ func (db *LDBDatabase) Delete(key []byte) error { return db.db.Delete(key, nil) } -func (db *LDBDatabase) LastKnownTD() []byte { - data, _ := db.Get([]byte("LTD")) - - if len(data) == 0 { - data = []byte{0x0} - } - - return data -} - func (db *LDBDatabase) NewIterator() iterator.Iterator { metrics.GetOrRegisterCounter("ldbdatabase.newiterator", nil).Inc(1) |