[telepathy-glib/master] channelspecific example CM: remove unused variable and unused return

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Dec 1 12:41:40 PST 2009


---
 examples/cm/channelspecific/room-manager.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/examples/cm/channelspecific/room-manager.c b/examples/cm/channelspecific/room-manager.c
index 75e8372..d3a6549 100644
--- a/examples/cm/channelspecific/room-manager.c
+++ b/examples/cm/channelspecific/room-manager.c
@@ -206,7 +206,7 @@ channel_closed_cb (ExampleCSHRoomChannel *chan,
     }
 }
 
-static ExampleCSHRoomChannel *
+static void
 new_channel (ExampleCSHRoomManager *self,
              TpHandle handle,
              TpHandle initiator,
@@ -238,8 +238,6 @@ new_channel (ExampleCSHRoomManager *self,
   tp_channel_manager_emit_new_channel (self, TP_EXPORTABLE_CHANNEL (chan),
       requests);
   g_slist_free (requests);
-
-  return chan;
 }
 
 static const gchar * const fixed_properties[] = {
@@ -307,7 +305,7 @@ example_csh_room_manager_request (ExampleCSHRoomManager *self,
 
   if (chan == NULL)
     {
-      chan = new_channel (self, handle, self->priv->conn->self_handle,
+      new_channel (self, handle, self->priv->conn->self_handle,
           request_token);
     }
   else if (require_new)
-- 
1.5.6.5




More information about the telepathy-commits mailing list