sms-mbim: remove unused code

Signed-off-by: Dan Williams <dan@ioncontrol.co>
This commit is contained in:
Dan Williams
2025-05-08 20:24:37 -05:00
parent efcc960b13
commit 08a65a0bed
-10
View File
@@ -77,7 +77,6 @@ peek_device (gpointer self,
/* Send the SMS */ /* Send the SMS */
typedef struct { typedef struct {
MMBaseModem *modem;
MbimDevice *device; MbimDevice *device;
GList *current; GList *current;
} SmsSendContext; } SmsSendContext;
@@ -86,7 +85,6 @@ static void
sms_send_context_free (SmsSendContext *ctx) sms_send_context_free (SmsSendContext *ctx)
{ {
g_object_unref (ctx->device); g_object_unref (ctx->device);
g_object_unref (ctx->modem);
g_slice_free (SmsSendContext, ctx); g_slice_free (SmsSendContext, ctx);
} }
@@ -199,9 +197,6 @@ sms_send (MMBaseSms *self,
/* Setup the context */ /* Setup the context */
ctx = g_slice_new0 (SmsSendContext); ctx = g_slice_new0 (SmsSendContext);
ctx->device = g_object_ref (device); ctx->device = g_object_ref (device);
g_object_get (self,
MM_BASE_SMS_MODEM, &ctx->modem,
NULL);
task = g_task_new (self, NULL, callback, user_data); task = g_task_new (self, NULL, callback, user_data);
g_task_set_task_data (task, ctx, (GDestroyNotify)sms_send_context_free); g_task_set_task_data (task, ctx, (GDestroyNotify)sms_send_context_free);
@@ -213,7 +208,6 @@ sms_send (MMBaseSms *self,
/*****************************************************************************/ /*****************************************************************************/
typedef struct { typedef struct {
MMBaseModem *modem;
MbimDevice *device; MbimDevice *device;
GList *current; GList *current;
guint n_failed; guint n_failed;
@@ -223,7 +217,6 @@ static void
sms_delete_parts_context_free (SmsDeletePartsContext *ctx) sms_delete_parts_context_free (SmsDeletePartsContext *ctx)
{ {
g_object_unref (ctx->device); g_object_unref (ctx->device);
g_object_unref (ctx->modem);
g_slice_free (SmsDeletePartsContext, ctx); g_slice_free (SmsDeletePartsContext, ctx);
} }
@@ -327,9 +320,6 @@ sms_delete (MMBaseSms *self,
ctx = g_slice_new0 (SmsDeletePartsContext); ctx = g_slice_new0 (SmsDeletePartsContext);
ctx->device = g_object_ref (device); ctx->device = g_object_ref (device);
g_object_get (self,
MM_BASE_SMS_MODEM, &ctx->modem,
NULL);
task = g_task_new (self, NULL, callback, user_data); task = g_task_new (self, NULL, callback, user_data);
g_task_set_task_data (task, ctx, (GDestroyNotify)sms_delete_parts_context_free); g_task_set_task_data (task, ctx, (GDestroyNotify)sms_delete_parts_context_free);