diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2018-10-27 22:18:42 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-10-27 22:18:42 +0800 |
commit | 54f650a3be2ccf7cd44e9929e3e132ef93f101ad (patch) | |
tree | 7e9a4db7c61b5b3009c4b01ad06b0de0a66f941f /swarm/storage/feed | |
parent | 8ed4739176f435d09dfa36d8b2e2a3c8c6f407dd (diff) | |
download | dexon-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/feed')
-rw-r--r-- | swarm/storage/feed/handler_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/swarm/storage/feed/handler_test.go b/swarm/storage/feed/handler_test.go index cf95bc1f5..fb2ef3a6b 100644 --- a/swarm/storage/feed/handler_test.go +++ b/swarm/storage/feed/handler_test.go @@ -27,7 +27,6 @@ import ( "time" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/swarm/chunk" "github.com/ethereum/go-ethereum/swarm/storage" @@ -506,15 +505,3 @@ func newCharlieSigner() *GenericSigner { privKey, _ := crypto.HexToECDSA("facadefacadefacadefacadefacadefacadefacadefacadefacadefacadefaca") return NewGenericSigner(privKey) } - -func getUpdateDirect(rh *Handler, addr storage.Address) ([]byte, error) { - chunk, err := rh.chunkStore.Get(context.TODO(), addr) - if err != nil { - return nil, err - } - var r Request - if err := r.fromChunk(addr, chunk.Data()); err != nil { - return nil, err - } - return r.data, nil -} |