]> git.0d.be Git - empathy.git/commitdiff
ft-handler: stop instantiating a EmpathyDispatcher
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 4 Feb 2011 14:35:00 +0000 (15:35 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 24 Feb 2011 09:11:56 +0000 (10:11 +0100)
libempathy/empathy-ft-handler.c

index b5f6b50177f6c8b3b149d8a93762e9c814045ffc..751328e247c031de3b79248e30d2cfc841d3a02f 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "empathy-ft-handler.h"
 #include "empathy-tp-contact-factory.h"
-#include "empathy-dispatcher.h"
 #include "empathy-marshal.h"
 #include "empathy-time.h"
 #include "empathy-utils.h"
@@ -125,8 +124,6 @@ typedef struct {
   GCancellable *cancellable;
   gboolean use_hash;
 
-  EmpathyDispatcher *dispatcher;
-
   /* request for the new transfer */
   GHashTable *request;
 
@@ -276,12 +273,6 @@ do_dispose (GObject *object)
       priv->request = NULL;
     }
 
-  if (priv->dispatcher != NULL)
-    {
-      g_object_unref (priv->dispatcher);
-      priv->dispatcher = NULL;
-    }
-
   G_OBJECT_CLASS (empathy_ft_handler_parent_class)->dispose (object);
 }
 
@@ -544,7 +535,6 @@ empathy_ft_handler_init (EmpathyFTHandler *self)
 
   self->priv = priv;
   priv->cancellable = g_cancellable_new ();
-  priv->dispatcher = empathy_dispatcher_dup_singleton ();
 }
 
 /* private functions */