[telepathy-mission-control/master] McdDispatcher: remove unused dispatcher-completed signal

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Oct 19 08:10:26 PDT 2009


---
 .../tmpl/mcd-dispatcher.sgml                       |    8 -------
 src/mcd-dispatcher.c                               |   22 +-------------------
 2 files changed, 1 insertions(+), 29 deletions(-)

diff --git a/doc/reference/libmissioncontrol-server/tmpl/mcd-dispatcher.sgml b/doc/reference/libmissioncontrol-server/tmpl/mcd-dispatcher.sgml
index 0340b75..396a78f 100644
--- a/doc/reference/libmissioncontrol-server/tmpl/mcd-dispatcher.sgml
+++ b/doc/reference/libmissioncontrol-server/tmpl/mcd-dispatcher.sgml
@@ -39,14 +39,6 @@ McdDispatcher
 @mcddispatcher: the object which received the signal.
 @arg1: 
 
-<!-- ##### SIGNAL McdDispatcher::dispatch-completed ##### -->
-<para>
-
-</para>
-
- at mcddispatcher: the object which received the signal.
- at arg1: 
-
 <!-- ##### SIGNAL McdDispatcher::dispatched ##### -->
 <para>
 
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 8933399..70d69af 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -218,7 +218,6 @@ enum _McdDispatcherSignalType
     CHANNEL_ADDED,
     CHANNEL_REMOVED,
     DISPATCHED,
-    DISPATCH_COMPLETED,
     LAST_SIGNAL
 };
 
@@ -257,8 +256,7 @@ mcd_handler_call_data_free (McdHandlerCallData *call_data)
  * call, or because there was an error in calling the handler. 
  * This function checks the status of all the channels in @context, and when
  * there is nothing left to do (either because all channels are dispatched, or
- * because it's impossible to dispatch them) it emits the "dispatch-completed"
- * signal and destroys the @context.
+ * because it's impossible to dispatch them) it destroys the @context.
  */
 static void
 mcd_dispatcher_context_handler_done (McdDispatcherContext *context)
@@ -270,8 +268,6 @@ mcd_dispatcher_context_handler_done (McdDispatcherContext *context)
     }
 
     context->finished = TRUE;
-    g_signal_emit (context->dispatcher,
-                   signals[DISPATCH_COMPLETED], 0, context);
 }
 
 static GList *
@@ -1965,22 +1961,6 @@ mcd_dispatcher_class_init (McdDispatcherClass * klass)
 		      NULL, NULL, g_cclosure_marshal_VOID__OBJECT,
 		      G_TYPE_NONE, 1, MCD_TYPE_CHANNEL);
 
-    /**
-     * McdDispatcher::dispatch-completed:
-     * @dispatcher: the #McdDispatcher.
-     * @context: a #McdDispatcherContext.
-     *
-     * This signal is emitted when a dispatch operation has terminated. One can
-     * inspect @context to get the status of the channels.
-     * After this signal returns, @context is no longer valid.
-     */
-    signals[DISPATCH_COMPLETED] =
-        g_signal_new ("dispatch-completed",
-                      G_OBJECT_CLASS_TYPE (klass),
-                      G_SIGNAL_RUN_LAST,
-                      0, NULL, NULL, g_cclosure_marshal_VOID__POINTER,
-                      G_TYPE_NONE, 1, G_TYPE_POINTER);
-
     /* Properties */
     g_object_class_install_property
         (object_class, PROP_DBUS_DAEMON,
-- 
1.5.6.5




More information about the telepathy-commits mailing list