[#42] netmap: remove deprecated methods
Missed this from #51. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
76d9835766
commit
26c59bfbb3
1 changed files with 0 additions and 19 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue