aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-modem-hso.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-03-04 20:45:30 -0800
committerDan Williams <dcbw@redhat.com>2010-03-04 20:45:30 -0800
commite6e3784c028f8d55bc9d2bd3fd207d958eba5ff4 (patch)
tree850c65902340c460ad40d827c73181451707d5c4 /plugins/mm-modem-hso.c
parent6c760464d4545d5bedaef01dbbdd8fba5617aa26 (diff)
hso: remove PIN checking code
This is handled by the generic class before the modem is even exported over D-Bus.
Diffstat (limited to 'plugins/mm-modem-hso.c')
-rw-r--r--plugins/mm-modem-hso.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/plugins/mm-modem-hso.c b/plugins/mm-modem-hso.c
index f1295e24..8bd42889 100644
--- a/plugins/mm-modem-hso.c
+++ b/plugins/mm-modem-hso.c
@@ -288,40 +288,6 @@ mm_hso_modem_authenticate (MMModemHso *self,
/*****************************************************************************/
static void
-enable_done (MMModem *modem, GError *error, gpointer user_data)
-{
- MMCallbackInfo *info = (MMCallbackInfo *) user_data;
-
- mm_generic_gsm_enable_complete (MM_GENERIC_GSM (modem), error, info);
-}
-
-static void
-parent_enable_done (MMModem *modem, GError *error, gpointer user_data)
-{
- MMCallbackInfo *info = (MMCallbackInfo *) user_data;
- MMGenericGsm *self = MM_GENERIC_GSM (modem);
-
- if (error) {
- mm_generic_gsm_enable_complete (self, error, info);
- return;
- }
-
- /* HSO needs manual PIN checking */
- mm_generic_gsm_check_pin (self, enable_done, info);
-}
-
-static void
-enable (MMModem *modem, MMModemFn callback, gpointer user_data)
-{
- MMModem *parent_modem_iface;
- MMCallbackInfo *info;
-
- info = mm_callback_info_new (modem, callback, user_data);
- parent_modem_iface = g_type_interface_peek_parent (MM_MODEM_GET_INTERFACE (info->modem));
- parent_modem_iface->enable (info->modem, parent_enable_done, info);
-}
-
-static void
parent_disable_done (MMModem *modem, GError *error, gpointer user_data)
{
MMCallbackInfo *info = (MMCallbackInfo *) user_data;
@@ -712,7 +678,6 @@ modem_simple_init (MMModemSimple *class)
static void
modem_init (MMModem *modem_class)
{
- modem_class->enable = enable;
modem_class->disable = disable;
modem_class->connect = do_connect;
modem_class->get_ip4_config = get_ip4_config;