[gnome-software: 20/21] gs-dbus-helper: Remove unused cancellable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 20/21] gs-dbus-helper: Remove unused cancellable
- Date: Wed, 27 Apr 2022 10:41:23 +0000 (UTC)
commit 1a1665ce51c3ada131aff4d652bf1e238dfbc69f
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Mar 31 23:40:34 2022 +0100
gs-dbus-helper: Remove unused cancellable
It was previously used for connecting to D-Bus, but is now unused.
I’ve removed it in a separate commit because it might feasibly be needed
again in future, in which case this commit could be reverted.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-dbus-helper.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/gs-dbus-helper.c b/src/gs-dbus-helper.c
index 3b0e01be5..4ef5e1fee 100644
--- a/src/gs-dbus-helper.c
+++ b/src/gs-dbus-helper.c
@@ -25,7 +25,6 @@
struct _GsDbusHelper {
GObject parent;
- GCancellable *cancellable;
GDBusInterfaceSkeleton *query_interface;
GDBusInterfaceSkeleton *modify_interface;
GDBusInterfaceSkeleton *modify2_interface;
@@ -820,7 +819,6 @@ static void
gs_dbus_helper_init (GsDbusHelper *dbus_helper)
{
dbus_helper->task = pk_task_new ();
- dbus_helper->cancellable = g_cancellable_new ();
}
static void
@@ -885,9 +883,6 @@ gs_dbus_helper_dispose (GObject *object)
{
GsDbusHelper *dbus_helper = GS_DBUS_HELPER (object);
- g_cancellable_cancel (dbus_helper->cancellable);
- g_clear_object (&dbus_helper->cancellable);
-
if (dbus_helper->dbus_own_name_id != 0) {
g_bus_unown_name (dbus_helper->dbus_own_name_id);
dbus_helper->dbus_own_name_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]