aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/common_test.go
diff options
context:
space:
mode:
authorFerenc Szabo <frncmx@gmail.com>2018-10-27 22:18:42 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2018-10-27 22:18:42 +0800
commit54f650a3be2ccf7cd44e9929e3e132ef93f101ad (patch)
tree7e9a4db7c61b5b3009c4b01ad06b0de0a66f941f /swarm/storage/common_test.go
parent8ed4739176f435d09dfa36d8b2e2a3c8c6f407dd (diff)
downloaddexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar.gz
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar.bz2
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar.lz
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar.xz
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.tar.zst
dexon-54f650a3be2ccf7cd44e9929e3e132ef93f101ad.zip
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
Diffstat (limited to 'swarm/storage/common_test.go')
-rw-r--r--swarm/storage/common_test.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/swarm/storage/common_test.go b/swarm/storage/common_test.go
index 33133edd7..600be164a 100644
--- a/swarm/storage/common_test.go
+++ b/swarm/storage/common_test.go
@@ -88,17 +88,6 @@ func mputRandomChunks(store ChunkStore, n int, chunksize int64) ([]Chunk, error)
return mput(store, n, GenerateRandomChunk)
}
-func mputChunks(store ChunkStore, chunks ...Chunk) error {
- i := 0
- f := func(n int64) Chunk {
- chunk := chunks[i]
- i++
- return chunk
- }
- _, err := mput(store, len(chunks), f)
- return err
-}
-
func mput(store ChunkStore, n int, f func(i int64) Chunk) (hs []Chunk, err error) {
// put to localstore and wait for stored channel
// does not check delivery error state