]> git.0d.be Git - empathy.git/commitdiff
tp-tube: remove priv->initiator_contact and priv->factory as they are not used
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 17 Apr 2009 10:48:29 +0000 (11:48 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 17 Apr 2009 10:49:49 +0000 (11:49 +0100)
libempathy/empathy-tp-tube.c

index 4ceb2c4a72d04190aca3f717c43f69521d4238af..008559338b48420e3736dbe0b6273d5091c77a66 100644 (file)
@@ -25,7 +25,6 @@
 #include <telepathy-glib/util.h>
 #include <extensions/extensions.h>
 
-#include "empathy-contact-factory.h"
 #include "empathy-enum-types.h"
 #include "empathy-tp-tube.h"
 #include "empathy-utils.h"
@@ -68,8 +67,6 @@ typedef struct
   /* FIXME readd support for parameters.. */
   GHashTable *parameters;
   EmpTubeChannelState state;
-  EmpathyContact *initiator_contact;
-  EmpathyContactFactory *factory;
 } EmpathyTpTubePriv;
 
 enum
@@ -202,10 +199,6 @@ tp_tube_finalize (GObject *object)
         "closing tube", NULL, NULL);
       g_object_unref (priv->channel);
     }
-  if (priv->initiator_contact)
-      g_object_unref (priv->initiator_contact);
-  if (priv->factory)
-      g_object_unref (priv->factory);
 
   g_free (priv->service);
 
@@ -251,8 +244,6 @@ empathy_tp_tube_init (EmpathyTpTube *tube)
                EMPATHY_TYPE_TP_TUBE, EmpathyTpTubePriv);
 
   tube->priv = priv;
-
-  priv->factory = empathy_contact_factory_dup_singleton ();
 }
 
 EmpathyTpTube *