mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/storage/localstore: remove unused code
This commit is contained in:
parent
eda338a319
commit
ad5b329a39
2 changed files with 0 additions and 14 deletions
|
|
@ -294,18 +294,6 @@ func TestDB_gcSize(t *testing.T) {
|
|||
t.Run("gc uncounted hashes index count", newItemsCountTest(db.gcUncountedHashesIndex, 0))
|
||||
}
|
||||
|
||||
func testStoredGCSize(t *testing.T, db *DB, want uint64) {
|
||||
t.Helper()
|
||||
|
||||
got, err := db.storedGCSize.Get()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if got != want {
|
||||
t.Errorf("got stored gc size %v, want %v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
// setTestHookCollectGarbage sets testHookCollectGarbage and
|
||||
// returns a function that will reset it to the
|
||||
// value before the change.
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ var (
|
|||
// ErrInvalidMode is retuned when an unknown Mode
|
||||
// is provided to the function.
|
||||
ErrInvalidMode = errors.New("invalid mode")
|
||||
// ErrDBClosed is returned when database is closed.
|
||||
ErrDBClosed = errors.New("db closed")
|
||||
// ErrAddressLockTimeout is returned when the same chunk
|
||||
// is updated in parallel and one of the updates
|
||||
// takes longer then the configured timeout duration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue