telepathy-mission-control: Remove remaining McdDispatcherContext getters, which are now unused

Simon McVittie smcv at kemper.freedesktop.org
Thu May 10 08:15:17 PDT 2012


Module: telepathy-mission-control
Branch: master
Commit: 1884b434805173e2d8b4eb6e6f6dc3f0f0b25129
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=1884b434805173e2d8b4eb6e6f6dc3f0f0b25129

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue May  8 13:59:24 2012 +0100

Remove remaining McdDispatcherContext getters, which are now unused

---

 src/mcd-dispatcher-context.h |   16 ----------------
 src/mcd-dispatcher.c         |   31 -------------------------------
 2 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/src/mcd-dispatcher-context.h b/src/mcd-dispatcher-context.h
index 06dfb3e..a07fb6b 100644
--- a/src/mcd-dispatcher-context.h
+++ b/src/mcd-dispatcher-context.h
@@ -64,22 +64,6 @@ void mcd_dispatcher_add_filter (McdDispatcher *dispatcher,
 void mcd_dispatcher_add_filters (McdDispatcher *dispatcher,
                                  const McdFilter *filters);
 
-/* Context API section
- *
- * The use of gpointer is intentional; we want to make accessing the
- * internals of the context restricted to make it unlikely that
- * somebody shoots [him|her]self in the foot while doing fancy
- * tricks. This also minimizes the amount of necessary includes.
- */
-
-/* Getters */
-
-const GList *mcd_dispatcher_context_get_channels
-    (McdDispatcherContext *context);
-
-McdConnection *mcd_dispatcher_context_get_connection
-    (McdDispatcherContext *context);
-
 G_END_DECLS
 
 #endif
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index c105551..9f95198 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1070,37 +1070,6 @@ mcd_dispatcher_context_unref (McdDispatcherContext * context,
     }
 }
 
-/* CONTEXT API */
-
-/**
- * mcd_dispatcher_context_get_connection:
- * @context: the #McdDispatcherContext.
- *
- * Returns: the #McdConnection.
- */
-McdConnection *
-mcd_dispatcher_context_get_connection (McdDispatcherContext *context)
-{
-    const GList *channels = mcd_dispatcher_context_get_channels (context);
-
-    g_return_val_if_fail (channels != NULL, NULL);
-    return MCD_CONNECTION (mcd_mission_get_parent
-                           (MCD_MISSION (channels->data)));
-}
-
-/**
- * mcd_dispatcher_context_get_channels:
- * @context: the #McdDispatcherContext.
- *
- * Returns: a #GList of #McdChannel elements.
- */
-const GList *
-mcd_dispatcher_context_get_channels (McdDispatcherContext *context)
-{
-    g_return_val_if_fail (context != NULL, NULL);
-    return _mcd_dispatch_operation_peek_channels (context->operation);
-}
-
 /*
  * _mcd_dispatcher_take_channels:
  * @dispatcher: the #McdDispatcher.



More information about the telepathy-commits mailing list