summaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-location.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-02-13 23:13:39 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:15:05 +0100
commit21a722b6169d27ea960ad24ff432f174163ed53a (patch)
treeec2f189315bbc8a360ee20468dd44ff0dcaa4394 /src/mm-iface-modem-location.c
parent3de4a2996340844b6808a4ca6e2d31b9b4b791f7 (diff)
downloadModemManager-21a722b6169d27ea960ad24ff432f174163ed53a.tar.gz
core: don't pass primary port to interface initializations
They will all get it themselves.
Diffstat (limited to 'src/mm-iface-modem-location.c')
-rw-r--r--src/mm-iface-modem-location.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mm-iface-modem-location.c b/src/mm-iface-modem-location.c
index 7f6155a71..9ada8597e 100644
--- a/src/mm-iface-modem-location.c
+++ b/src/mm-iface-modem-location.c
@@ -639,7 +639,6 @@ typedef enum {
struct _InitializationContext {
MMIfaceModemLocation *self;
- MMAtSerialPort *port;
MmGdbusModemLocation *skeleton;
GSimpleAsyncResult *result;
InitializationStep step;
@@ -648,7 +647,6 @@ struct _InitializationContext {
static InitializationContext *
initialization_context_new (MMIfaceModemLocation *self,
- MMAtSerialPort *port,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -656,7 +654,6 @@ initialization_context_new (MMIfaceModemLocation *self,
ctx = g_new0 (InitializationContext, 1);
ctx->self = g_object_ref (self);
- ctx->port = g_object_ref (port);
ctx->capabilities = MM_MODEM_LOCATION_SOURCE_NONE;
ctx->result = g_simple_async_result_new (G_OBJECT (self),
callback,
@@ -675,7 +672,6 @@ initialization_context_complete_and_free (InitializationContext *ctx)
{
g_simple_async_result_complete_in_idle (ctx->result);
g_object_unref (ctx->self);
- g_object_unref (ctx->port);
g_object_unref (ctx->result);
g_object_unref (ctx->skeleton);
g_free (ctx);
@@ -777,7 +773,6 @@ mm_iface_modem_location_initialize_finish (MMIfaceModemLocation *self,
void
mm_iface_modem_location_initialize (MMIfaceModemLocation *self,
- MMAtSerialPort *port,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -807,7 +802,6 @@ mm_iface_modem_location_initialize (MMIfaceModemLocation *self,
/* Perform async initialization here */
interface_initialization_step (initialization_context_new (self,
- port,
callback,
user_data));
g_object_unref (skeleton);