swarm/storage/localstore: remove unused code

This commit is contained in:
Janos Guljas 2019-01-22 10:56:03 +01:00
parent eda338a319
commit ad5b329a39
2 changed files with 0 additions and 14 deletions

View file

@ -294,18 +294,6 @@ func TestDB_gcSize(t *testing.T) {
t.Run("gc uncounted hashes index count", newItemsCountTest(db.gcUncountedHashesIndex, 0)) 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 // setTestHookCollectGarbage sets testHookCollectGarbage and
// returns a function that will reset it to the // returns a function that will reset it to the
// value before the change. // value before the change.

View file

@ -33,8 +33,6 @@ var (
// ErrInvalidMode is retuned when an unknown Mode // ErrInvalidMode is retuned when an unknown Mode
// is provided to the function. // is provided to the function.
ErrInvalidMode = errors.New("invalid mode") ErrInvalidMode = errors.New("invalid mode")
// ErrDBClosed is returned when database is closed.
ErrDBClosed = errors.New("db closed")
// ErrAddressLockTimeout is returned when the same chunk // ErrAddressLockTimeout is returned when the same chunk
// is updated in parallel and one of the updates // is updated in parallel and one of the updates
// takes longer then the configured timeout duration. // takes longer then the configured timeout duration.