base-modem: remove mm_base_modem_get_cancellable()

No users left for the getter that takes a reference after a port of
MMBaseModemAT to GTask.

peek_cancellable() is used instead, because the GTask constructor
takes a reference itself.
This commit is contained in:
Lubomir Rintel
2023-03-31 09:02:09 +02:00
committed by Aleksander Morgado
parent 476cb2bbc2
commit f0a77a2292
2 changed files with 0 additions and 9 deletions

View File

@@ -945,14 +945,6 @@ mm_base_modem_peek_cancellable (MMBaseModem *self)
return self->priv->cancellable;
}
GCancellable *
mm_base_modem_get_cancellable (MMBaseModem *self)
{
g_return_val_if_fail (MM_IS_BASE_MODEM (self), NULL);
return g_object_ref (self->priv->cancellable);
}
MMPortSerialAt *
mm_base_modem_get_port_primary (MMBaseModem *self)
{

View File

@@ -213,7 +213,6 @@ guint mm_base_modem_get_product_id (MMBaseModem *self);
guint mm_base_modem_get_subsystem_vendor_id (MMBaseModem *self);
GCancellable *mm_base_modem_peek_cancellable (MMBaseModem *self);
GCancellable *mm_base_modem_get_cancellable (MMBaseModem *self);
void mm_base_modem_authorize (MMBaseModem *self,
GDBusMethodInvocation *invocation,