[sysprof/wip/chergert/control-fd] control-fd: remove use of parent interface chainup



commit 9714f86fc50ea5c49a2e1aac2a36fbf13365f406
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 11 11:35:38 2020 -0800

    control-fd: remove use of parent interface chainup

 src/libsysprof/sysprof-control-source.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/src/libsysprof/sysprof-control-source.c b/src/libsysprof/sysprof-control-source.c
index b253bc2..27aa980 100644
--- a/src/libsysprof/sysprof-control-source.c
+++ b/src/libsysprof/sysprof-control-source.c
@@ -48,8 +48,6 @@ static void source_iface_init (SysprofSourceInterface *iface);
 G_DEFINE_TYPE_WITH_CODE (SysprofControlSource, sysprof_control_source, G_TYPE_OBJECT,
                          G_IMPLEMENT_INTERFACE (SYSPROF_TYPE_SOURCE, source_iface_init))
 
-static SysprofSourceInterface *parent_iface;
-
 SysprofControlSource *
 sysprof_control_source_new (void)
 {
@@ -190,9 +188,6 @@ sysprof_control_source_stop (SysprofSource *source)
       g_dbus_connection_close_sync (self->conn, NULL, NULL);
       g_clear_object (&self->conn);
     }
-
-  if (parent_iface->stop)
-    parent_iface->stop (source);
 }
 
 static void
@@ -240,8 +235,6 @@ sysprof_control_source_supplement (SysprofSource        *source,
 static void
 source_iface_init (SysprofSourceInterface *iface)
 {
-  parent_iface = g_type_interface_peek_parent (iface);
-
   iface->set_writer = sysprof_control_source_set_writer;
   iface->modify_spawn = sysprof_control_source_modify_spawn;
   iface->stop = sysprof_control_source_stop;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]