iface-modem-3gpp: delete unused mm_iface_modem_3gpp_disable_facility_lock()
The action of disabling facility locks is user-triggered, so there is no need to have an internal method to run the logic without user interaction.
This commit is contained in:
@@ -2939,53 +2939,3 @@ mm_iface_modem_3gpp_get_type (void)
|
|||||||
|
|
||||||
return iface_modem_3gpp_type;
|
return iface_modem_3gpp_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove modem personalization */
|
|
||||||
gboolean
|
|
||||||
mm_iface_modem_3gpp_disable_facility_lock_finish (MMIfaceModem3gpp *self,
|
|
||||||
GAsyncResult *res,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
return g_task_propagate_boolean (G_TASK (res), error);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
disable_facility_lock_ready (MMIfaceModem3gpp *self,
|
|
||||||
GAsyncResult *res,
|
|
||||||
GTask *task)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
if (!MM_IFACE_MODEM_3GPP_GET_INTERFACE (self)->disable_facility_lock_finish (self, res, &error)) {
|
|
||||||
g_task_return_error (task, error);
|
|
||||||
g_object_unref (task);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
mm_iface_modem_3gpp_disable_facility_lock (MMIfaceModem3gpp *self,
|
|
||||||
MMModem3gppFacility facility,
|
|
||||||
guint8 slot,
|
|
||||||
const gchar *control_key,
|
|
||||||
GAsyncReadyCallback callback,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GTask *task;
|
|
||||||
|
|
||||||
task = g_task_new (self, NULL, callback, user_data);
|
|
||||||
|
|
||||||
if (!MM_IFACE_MODEM_3GPP_GET_INTERFACE (self)->disable_facility_lock) {
|
|
||||||
g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED,
|
|
||||||
"Disabling facility lock not supported");
|
|
||||||
g_object_unref (task);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
MM_IFACE_MODEM_3GPP_GET_INTERFACE (self)->disable_facility_lock (
|
|
||||||
self,
|
|
||||||
facility,
|
|
||||||
slot,
|
|
||||||
control_key ? g_strdup (control_key) : NULL,
|
|
||||||
(GAsyncReadyCallback)disable_facility_lock_ready,
|
|
||||||
task);
|
|
||||||
}
|
|
||||||
|
@@ -345,15 +345,4 @@ gboolean mm_iface_modem_3gpp_reregister_in_network_finish (MMIfaceModem3gpp
|
|||||||
void mm_iface_modem_3gpp_bind_simple_status (MMIfaceModem3gpp *self,
|
void mm_iface_modem_3gpp_bind_simple_status (MMIfaceModem3gpp *self,
|
||||||
MMSimpleStatus *status);
|
MMSimpleStatus *status);
|
||||||
|
|
||||||
/* Remove modem personalization */
|
|
||||||
void mm_iface_modem_3gpp_disable_facility_lock (MMIfaceModem3gpp *self,
|
|
||||||
MMModem3gppFacility facility,
|
|
||||||
guint8 slot,
|
|
||||||
const gchar *key,
|
|
||||||
GAsyncReadyCallback callback,
|
|
||||||
gpointer user_data);
|
|
||||||
gboolean mm_iface_modem_3gpp_disable_facility_lock_finish (MMIfaceModem3gpp *self,
|
|
||||||
GAsyncResult *res,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
#endif /* MM_IFACE_MODEM_3GPP_H */
|
#endif /* MM_IFACE_MODEM_3GPP_H */
|
||||||
|
Reference in New Issue
Block a user