From 54f650a3be2ccf7cd44e9929e3e132ef93f101ad Mon Sep 17 00:00:00 2001 From: Ferenc Szabo Date: Sat, 27 Oct 2018 16:18:42 +0200 Subject: 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: 1ca8fc1e6fa0ab4ab1aaca06d6fb32e173cd5f2f --- swarm/pss/client/client_test.go | 4 ---- swarm/pss/pss_test.go | 5 ----- swarm/pss/types.go | 4 ---- 3 files changed, 13 deletions(-) (limited to 'swarm/pss') diff --git a/swarm/pss/client/client_test.go b/swarm/pss/client/client_test.go index 48edc6cce..cfef3c794 100644 --- a/swarm/pss/client/client_test.go +++ b/swarm/pss/client/client_test.go @@ -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 } diff --git a/swarm/pss/pss_test.go b/swarm/pss/pss_test.go index 574714114..66a90be62 100644 --- a/swarm/pss/pss_test.go +++ b/swarm/pss/pss_test.go @@ -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) diff --git a/swarm/pss/types.go b/swarm/pss/types.go index 1e33ecdca..56c2c51dc 100644 --- a/swarm/pss/types.go +++ b/swarm/pss/types.go @@ -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 } -- cgit v1.2.3