From 56b428dcd59e6db4175f1f5f917a7e17ff0d6a80 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Wed, 19 Jan 2011 23:53:52 +0200 Subject: [PATCH] atmodem: Remove deregister implementation --- drivers/atmodem/network-registration.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/atmodem/network-registration.c b/drivers/atmodem/network-registration.c index e11c974..4b8cc34 100644 --- a/drivers/atmodem/network-registration.c +++ b/drivers/atmodem/network-registration.c @@ -557,25 +557,6 @@ error: CALLBACK_WITH_FAILURE(cb, data); } -static void at_deregister(struct ofono_netreg *netreg, - ofono_netreg_register_cb_t cb, void *data) -{ - struct netreg_data *nd = ofono_netreg_get_data(netreg); - struct cb_data *cbd = cb_data_new(cb, data); - - if (cbd == NULL) - goto error; - - if (g_at_chat_send(nd->chat, "AT+COPS=2", none_prefix, - register_cb, cbd, g_free) > 0) - return; - -error: - g_free(cbd); - - CALLBACK_WITH_FAILURE(cb, data); -} - static void csq_notify(GAtResult *result, gpointer user_data) { struct ofono_netreg *netreg = user_data; @@ -1342,7 +1323,6 @@ static struct ofono_netreg_driver driver = { .list_operators = at_list_operators, .register_auto = at_register_auto, .register_manual = at_register_manual, - .deregister = at_deregister, .strength = at_signal_strength, }; -- 2.7.4