[telepathy-mission-control/master] _mcd_dispatch_operation_get_handler: inline
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Nov 2 06:41:51 PST 2009
---
src/mcd-dispatch-operation-priv.h | 2 --
src/mcd-dispatch-operation.c | 18 ++----------------
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/src/mcd-dispatch-operation-priv.h b/src/mcd-dispatch-operation-priv.h
index cb65c29..692fd93 100644
--- a/src/mcd-dispatch-operation-priv.h
+++ b/src/mcd-dispatch-operation-priv.h
@@ -58,8 +58,6 @@ G_GNUC_INTERNAL const gchar *_mcd_dispatch_operation_get_path
(McdDispatchOperation *operation);
G_GNUC_INTERNAL GHashTable *_mcd_dispatch_operation_get_properties
(McdDispatchOperation *operation);
-G_GNUC_INTERNAL const gchar *_mcd_dispatch_operation_get_handler
- (McdDispatchOperation *operation);
G_GNUC_INTERNAL void _mcd_dispatch_operation_approve
(McdDispatchOperation *self);
diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c
index 90b3bdd..6db2945 100644
--- a/src/mcd-dispatch-operation.c
+++ b/src/mcd-dispatch-operation.c
@@ -1090,19 +1090,6 @@ _mcd_dispatch_operation_get_possible_handlers (McdDispatchOperation *self)
return (const gchar * const *) self->priv->possible_handlers;
}
-/*
- * _mcd_dispatch_operation_get_handler:
- * @operation: the #McdDispatchOperation.
- *
- * Returns: the well-known name of the choosen channel handler.
- */
-const gchar *
-_mcd_dispatch_operation_get_handler (McdDispatchOperation *operation)
-{
- g_return_val_if_fail (MCD_IS_DISPATCH_OPERATION (operation), NULL);
- return operation->priv->handler;
-}
-
static gboolean
mcd_dispatch_operation_check_handle_with (McdDispatchOperation *self,
const gchar *handler_name,
@@ -1749,15 +1736,14 @@ _mcd_dispatch_operation_run_handlers (McdDispatchOperation *self)
GList *channels, *list;
const gchar * const *possible_handlers;
const gchar * const *iter;
- const gchar *approved_handler = _mcd_dispatch_operation_get_handler (self);
/* If there is an approved handler chosen by the Approver, it's the only
* one we'll consider. */
- if (approved_handler != NULL && approved_handler[0] != '\0')
+ if (self->priv->handler != NULL && self->priv->handler[0] != '\0')
{
gchar *bus_name = g_strconcat (TP_CLIENT_BUS_NAME_BASE,
- approved_handler, NULL);
+ self->priv->handler, NULL);
McdClientProxy *handler = _mcd_client_registry_lookup (
self->priv->client_registry, bus_name);
gboolean failed = _mcd_dispatch_operation_get_handler_failed (self,
--
1.5.6.5
More information about the telepathy-commits
mailing list