mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 16:30:23 +01:00
device: remove unused function nm_device_master_get_slave_by_ifindex()
This commit is contained in:
parent
9740fef906
commit
019d3adbca
2 changed files with 0 additions and 25 deletions
|
|
@ -93,8 +93,6 @@ void nm_device_recheck_available_connections (NMDevice *device);
|
|||
|
||||
gboolean nm_device_get_enslaved (NMDevice *device);
|
||||
|
||||
NMDevice *nm_device_master_get_slave_by_ifindex (NMDevice *dev, int ifindex);
|
||||
|
||||
void nm_device_master_check_slave_physical_port (NMDevice *self, NMDevice *slave,
|
||||
NMLogDomain log_domain);
|
||||
|
||||
|
|
|
|||
|
|
@ -3445,29 +3445,6 @@ nm_device_master_get_slaves (NMDevice *self)
|
|||
return slaves;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_device_master_get_slave_by_ifindex:
|
||||
* @self: the master device
|
||||
* @ifindex: the slave's interface index
|
||||
*
|
||||
* Returns: the slave with the given @ifindex of which @self is the master,
|
||||
* or %NULL if no device with @ifindex is a slave of @self.
|
||||
*/
|
||||
NMDevice *
|
||||
nm_device_master_get_slave_by_ifindex (NMDevice *self, int ifindex)
|
||||
{
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
CList *iter;
|
||||
|
||||
c_list_for_each (iter, &priv->slaves) {
|
||||
SlaveInfo *info = c_list_entry (iter, SlaveInfo, lst_slave);
|
||||
|
||||
if (nm_device_get_ip_ifindex (info->slave) == ifindex)
|
||||
return info->slave;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_device_master_check_slave_physical_port:
|
||||
* @self: the master device
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue