diff options
-rw-r--r-- | src/mm-iface-modem-3gpp.c | 50 | ||||
-rw-r--r-- | src/mm-iface-modem-3gpp.h | 11 |
2 files changed, 0 insertions, 61 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index a5d938ad..786372a4 100644 --- a/src/mm-iface-modem-3gpp.c +++ b/src/mm-iface-modem-3gpp.c @@ -2939,53 +2939,3 @@ mm_iface_modem_3gpp_get_type (void) 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); -} diff --git a/src/mm-iface-modem-3gpp.h b/src/mm-iface-modem-3gpp.h index dc752f41..ec5dd482 100644 --- a/src/mm-iface-modem-3gpp.h +++ b/src/mm-iface-modem-3gpp.h @@ -345,15 +345,4 @@ gboolean mm_iface_modem_3gpp_reregister_in_network_finish (MMIfaceModem3gpp void mm_iface_modem_3gpp_bind_simple_status (MMIfaceModem3gpp *self, 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 */ |