aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-04-30 11:53:27 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-04-30 18:40:29 +0000
commit9e2c9cce975907c9da5c092645adbe60f4ce28a1 (patch)
treee5fbcd58b3ae8f5d5bd21642501d5b8a9aa4281c /src
parentd47babd5b7e792f60a63ec50f1154cc6b1658cb1 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-3gpp.c50
-rw-r--r--src/mm-iface-modem-3gpp.h11
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 */