modem: remove unused reason argument from nm_modem_device_state_changed()

The reason has pecular meanings during a device state change.
Let's remove the unused reason argument to reduce the noise.
This commit is contained in:
Thomas Haller 2017-02-23 14:42:36 +01:00
parent 04c8517ea2
commit 8e12396b74
4 changed files with 5 additions and 8 deletions

View file

@ -508,7 +508,7 @@ device_state_changed (NMDevice *device,
NMDeviceBtPrivate *priv = NM_DEVICE_BT_GET_PRIVATE ((NMDeviceBt *) device);
if (priv->modem)
nm_modem_device_state_changed (priv->modem, new_state, old_state, reason);
nm_modem_device_state_changed (priv->modem, new_state, old_state);
/* Need to recheck available connections whenever MM appears or disappears,
* since the device could be both DUN and NAP capable and thus may not
@ -925,8 +925,7 @@ deactivate (NMDevice *device)
*/
nm_modem_device_state_changed (priv->modem,
NM_DEVICE_STATE_DISCONNECTED,
NM_DEVICE_STATE_ACTIVATED,
NM_DEVICE_STATE_REASON_USER_REQUESTED);
NM_DEVICE_STATE_ACTIVATED);
modem_cleanup (NM_DEVICE_BT (device));
}
}

View file

@ -375,7 +375,7 @@ device_state_changed (NMDevice *device,
nm_modem_state_to_string (nm_modem_get_state (priv->modem)));
}
nm_modem_device_state_changed (priv->modem, new_state, old_state, reason);
nm_modem_device_state_changed (priv->modem, new_state, old_state);
switch (reason) {
case NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED:

View file

@ -1257,8 +1257,7 @@ nm_modem_deactivate (NMModem *self, NMDevice *device)
void
nm_modem_device_state_changed (NMModem *self,
NMDeviceState new_state,
NMDeviceState old_state,
NMDeviceStateReason reason)
NMDeviceState old_state)
{
gboolean was_connected = FALSE, warn = TRUE;
NMModemPrivate *priv;

View file

@ -222,8 +222,7 @@ gboolean nm_modem_deactivate_async_finish (NMModem *self,
void nm_modem_device_state_changed (NMModem *modem,
NMDeviceState new_state,
NMDeviceState old_state,
NMDeviceStateReason reason);
NMDeviceState old_state);
void nm_modem_set_mm_enabled (NMModem *self, gboolean enabled);