From 26c59bfbb3e10d9de67f5036dd722e25795bb1ed Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 8 Nov 2021 17:30:43 +0300 Subject: [PATCH] [#42] netmap: remove deprecated methods Missed this from #51. Signed-off-by: Evgenii Stratonikov --- netmap/node_info.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/netmap/node_info.go b/netmap/node_info.go index cd235b0e..08c50e43 100644 --- a/netmap/node_info.go +++ b/netmap/node_info.go @@ -317,25 +317,6 @@ func (i *NodeInfo) SetPublicKey(key []byte) { (*netmap.NodeInfo)(i).SetPublicKey(key) } -// Address returns network endpoint address of the node. -// -// Deprecated: use IterateAddresses method. -func (i *NodeInfo) Address() (addr string) { - i.IterateAddresses(func(s string) bool { - addr = s - return true - }) - - return -} - -// SetAddress sets network endpoint address of the node. -// -// Deprecated: use SetAddresses method. -func (i *NodeInfo) SetAddress(addr string) { - i.SetAddresses(addr) -} - // NumberOfAddresses returns number of network addresses of the node. func (i *NodeInfo) NumberOfAddresses() int { return (*netmap.NodeInfo)(i).NumberOfAddresses()