[#607] network: Remove no longer needed GroupFromAddress function

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-23 12:30:31 +03:00 committed by Leonard Lyubich
parent e3eade619d
commit 359bbe319a

View file

@ -106,13 +106,6 @@ func (x *AddressGroup) FromIterator(iter MultiAddressIterator) (err error) {
return return
} }
// GroupFromAddress wraps single Address into AddressGroup.
//
// Deprecated: use AddressGroup.FromIterator method.
func GroupFromAddress(addr Address) AddressGroup {
return AddressGroup{addr}
}
// WriteToNodeInfo writes AddressGroup to netmap.NodeInfo structure. // WriteToNodeInfo writes AddressGroup to netmap.NodeInfo structure.
func (x AddressGroup) WriteToNodeInfo(ni *netmap.NodeInfo) { func (x AddressGroup) WriteToNodeInfo(ni *netmap.NodeInfo) {
addrs := make([]string, len(x)) addrs := make([]string, len(x))