swarm: clean up unused private types and functions (#17989)

* swarm: clean up unused private types and functions

Those that were identified by code inspection tool.

* swarm/storage: move/add Proximity GoDoc from deleted private function

The mentioned proximity() private function was deleted in:
1ca8fc1e6f
This commit is contained in:
Ferenc Szabo
2018-10-27 16:18:42 +02:00
committed by Anton Evangelatov
parent 8ed4739176
commit 54f650a3be
10 changed files with 13 additions and 108 deletions

View File

@@ -288,10 +288,6 @@ type testStore struct {
values map[string][]byte
}
func newTestStore() *testStore {
return &testStore{values: make(map[string][]byte)}
}
func (t *testStore) Load(key string) ([]byte, error) {
return nil, nil
}

View File

@@ -976,11 +976,6 @@ func TestNetwork10000(t *testing.T) {
}
func testNetwork(t *testing.T) {
type msgnotifyC struct {
id enode.ID
msgIdx int
}
paramstring := strings.Split(t.Name(), "/")
nodecount, _ := strconv.ParseInt(paramstring[1], 10, 0)
msgcount, _ := strconv.ParseInt(paramstring[2], 10, 0)

View File

@@ -169,10 +169,6 @@ type stateStore struct {
values map[string][]byte
}
func newStateStore() *stateStore {
return &stateStore{values: make(map[string][]byte)}
}
func (store *stateStore) Load(key string) ([]byte, error) {
return nil, nil
}