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:
committed by
Anton Evangelatov
parent
8ed4739176
commit
54f650a3be
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user