From 453521ee68e0801f7a6f29bf103b428b4b8b3fea Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Wed, 5 Jul 2023 15:40:11 +0400 Subject: [PATCH] client: Remove unused getSigner Signed-off-by: Evgenii Baidakov --- client/client.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/client/client.go b/client/client.go index 33d3003c..da9c7c76 100644 --- a/client/client.go +++ b/client/client.go @@ -140,22 +140,6 @@ func (c *Client) setNeoFSAPIServer(server neoFSAPIServer) { c.server = server } -// getSigner returns a signer for requests. Provided signer fromPrm (if any) is prioritized, otherwise -// Client's default is used. -// Returns [ErrMissingSigner] if no signer is provided at all. -func (c *Client) getSigner(fromPrm neofscrypto.Signer) (neofscrypto.Signer, error) { - signer := fromPrm - if signer == nil { - signer = c.prm.signer - } - - if signer == nil { - return nil, ErrMissingSigner - } - - return signer, nil -} - // Close closes underlying connection to the NeoFS server. Implements io.Closer. // MUST NOT be called before successful Dial. Can be called concurrently // with server operations processing on running goroutines: in this case