summaryrefslogtreecommitdiff
path: root/src/im-factory.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-10-11 15:50:24 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-04 09:02:18 +0000
commit34b600adcb8894615fc2b40400ce6e740230f7c2 (patch)
tree76eec6979c54a2137e14ad2e98fb9aa9adb6ef4c /src/im-factory.c
parentb3d5848804b8128b0962f4860efcd758e19d7fc3 (diff)
IMChannel: implement get_object_path_suffix
I think this is simpler than the factory passing the path in. Though it's actually longer, which offends me on some level.
Diffstat (limited to 'src/im-factory.c')
-rw-r--r--src/im-factory.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/im-factory.c b/src/im-factory.c
index a5f249149..c110f82cc 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -352,7 +352,6 @@ new_im_channel (GabbleImFactory *fac,
GabbleImFactoryPrivate *priv;
TpBaseConnection *conn;
GabbleIMChannel *chan;
- char *object_path;
GSList *request_tokens;
TpHandle initiator;
@@ -367,18 +366,13 @@ new_im_channel (GabbleImFactory *fac,
else
initiator = handle;
- object_path = g_strdup_printf ("%s/ImChannel%u",
- conn->object_path, handle);
chan = g_object_new (GABBLE_TYPE_IM_CHANNEL,
"connection", priv->conn,
- "object-path", object_path,
"handle", handle,
"initiator-handle", initiator,
"requested", (handle != initiator),
NULL);
- DEBUG ("object path %s", object_path);
tp_base_channel_register ((TpBaseChannel *) chan);
- g_free (object_path);
g_signal_connect (chan, "closed", (GCallback) im_channel_closed_cb, fac);