telepathy-mission-control: Remove various unused getters from McdDispatcherContext
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 10 08:15:17 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: 0a1e2de74466b78f2e99ee4c82e21dfbe4be3715
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=0a1e2de74466b78f2e99ee4c82e21dfbe4be3715
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue May 8 13:58:31 2012 +0100
Remove various unused getters from McdDispatcherContext
---
src/mcd-dispatcher-context.h | 7 -------
src/mcd-dispatcher.c | 40 ----------------------------------------
2 files changed, 0 insertions(+), 47 deletions(-)
diff --git a/src/mcd-dispatcher-context.h b/src/mcd-dispatcher-context.h
index e0a5790..06dfb3e 100644
--- a/src/mcd-dispatcher-context.h
+++ b/src/mcd-dispatcher-context.h
@@ -74,13 +74,6 @@ void mcd_dispatcher_add_filters (McdDispatcher *dispatcher,
/* Getters */
-McdDispatcher* mcd_dispatcher_context_get_dispatcher (McdDispatcherContext * ctx);
-
-TpChannel *mcd_dispatcher_context_get_channel_object (McdDispatcherContext * ctx) G_GNUC_DEPRECATED;
-
-TpConnection *mcd_dispatcher_context_get_connection_object (McdDispatcherContext * ctx) G_GNUC_DEPRECATED;
-
-McdChannel * mcd_dispatcher_context_get_channel (McdDispatcherContext * ctx);
const GList *mcd_dispatcher_context_get_channels
(McdDispatcherContext *context);
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 4bb8fcd..c105551 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1072,24 +1072,6 @@ mcd_dispatcher_context_unref (McdDispatcherContext * context,
/* CONTEXT API */
-/* Context getters */
-TpChannel *
-mcd_dispatcher_context_get_channel_object (McdDispatcherContext * ctx)
-{
- TpChannel *tp_chan;
- g_return_val_if_fail (ctx, 0);
- g_object_get (G_OBJECT (mcd_dispatcher_context_get_channel (ctx)),
- "tp-channel", &tp_chan, NULL);
- g_object_unref (G_OBJECT (tp_chan));
- return tp_chan;
-}
-
-McdDispatcher*
-mcd_dispatcher_context_get_dispatcher (McdDispatcherContext * ctx)
-{
- return ctx->dispatcher;
-}
-
/**
* mcd_dispatcher_context_get_connection:
* @context: the #McdDispatcherContext.
@@ -1106,28 +1088,6 @@ mcd_dispatcher_context_get_connection (McdDispatcherContext *context)
(MCD_MISSION (channels->data)));
}
-TpConnection *
-mcd_dispatcher_context_get_connection_object (McdDispatcherContext * ctx)
-{
- const McdConnection *connection;
- TpConnection *tp_conn;
-
- connection = mcd_dispatcher_context_get_connection (ctx);
- g_object_get (G_OBJECT (connection), "tp-connection",
- &tp_conn, NULL);
-
- g_object_unref (tp_conn);
- return tp_conn;
-}
-
-McdChannel *
-mcd_dispatcher_context_get_channel (McdDispatcherContext * ctx)
-{
- const GList *channels = mcd_dispatcher_context_get_channels (ctx);
-
- return channels ? MCD_CHANNEL (channels->data) : NULL;
-}
-
/**
* mcd_dispatcher_context_get_channels:
* @context: the #McdDispatcherContext.
More information about the telepathy-commits
mailing list