mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-05 18:10:36 +01:00
core: remove nm_device_can_interrupt_activation()
No longer used anywhere.
This commit is contained in:
parent
46abe332b8
commit
3f079f3265
3 changed files with 0 additions and 39 deletions
|
|
@ -3338,15 +3338,6 @@ activation_failure_handler (NMDevice *dev)
|
|||
wifi_utils_indicate_addressing_running (NM_DEVICE_WIFI_GET_PRIVATE (dev)->wifi_data, FALSE);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
can_interrupt_activation (NMDevice *dev)
|
||||
{
|
||||
if (nm_device_get_state (dev) == NM_DEVICE_STATE_NEED_AUTH)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
device_state_changed (NMDevice *device,
|
||||
NMDeviceState new_state,
|
||||
|
|
@ -3643,7 +3634,6 @@ nm_device_wifi_class_init (NMDeviceWifiClass *klass)
|
|||
parent_class->act_stage4_ip4_config_timeout = act_stage4_ip4_config_timeout;
|
||||
parent_class->act_stage4_ip6_config_timeout = act_stage4_ip6_config_timeout;
|
||||
parent_class->deactivate = deactivate;
|
||||
parent_class->can_interrupt_activation = can_interrupt_activation;
|
||||
|
||||
parent_class->state_changed = device_state_changed;
|
||||
|
||||
|
|
|
|||
|
|
@ -4872,31 +4872,6 @@ nm_device_is_activating (NMDevice *device)
|
|||
return priv->act_source_id ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
can_interrupt_activation (NMDevice *device)
|
||||
{
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (device);
|
||||
|
||||
/* Devices that support carrier detect can interrupt activation
|
||||
* if the link becomes inactive and carrier is honored.
|
||||
*/
|
||||
return !priv->carrier && !priv->ignore_carrier;
|
||||
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_device_can_interrupt_activation (NMDevice *self)
|
||||
{
|
||||
gboolean interrupt = FALSE;
|
||||
|
||||
g_return_val_if_fail (self != NULL, FALSE);
|
||||
|
||||
if (NM_DEVICE_GET_CLASS (self)->can_interrupt_activation)
|
||||
interrupt = NM_DEVICE_GET_CLASS (self)->can_interrupt_activation (self);
|
||||
return interrupt;
|
||||
}
|
||||
|
||||
/* IP Configuration stuff */
|
||||
|
||||
NMDHCP4Config *
|
||||
|
|
@ -5861,7 +5836,6 @@ nm_device_class_init (NMDeviceClass *klass)
|
|||
klass->bring_up = bring_up;
|
||||
klass->take_down = take_down;
|
||||
klass->carrier_changed = carrier_changed;
|
||||
klass->can_interrupt_activation = can_interrupt_activation;
|
||||
klass->get_hw_address_length = get_hw_address_length;
|
||||
|
||||
/* Properties */
|
||||
|
|
|
|||
|
|
@ -180,8 +180,6 @@ typedef struct {
|
|||
|
||||
void (* deactivate) (NMDevice *self);
|
||||
|
||||
gboolean (* can_interrupt_activation) (NMDevice *self);
|
||||
|
||||
gboolean (* spec_match_list) (NMDevice *self, const GSList *specs);
|
||||
|
||||
/* Update the connection with currently configured L2 settings */
|
||||
|
|
@ -279,7 +277,6 @@ NMConnection * nm_device_find_assumable_connection (NMDevice *device,
|
|||
gboolean nm_device_spec_match_list (NMDevice *device, const GSList *specs);
|
||||
|
||||
gboolean nm_device_is_activating (NMDevice *dev);
|
||||
gboolean nm_device_can_interrupt_activation (NMDevice *self);
|
||||
gboolean nm_device_autoconnect_allowed (NMDevice *self);
|
||||
|
||||
NMDeviceState nm_device_get_state (NMDevice *device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue