aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-02-18 18:41:46 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:46:05 +0800
commit94722faf307e2e0d4d1d9532893f0a2206ac4803 (patch)
tree5619ce5616b801bf481f5a838c7bba5ac46402ee /libempathy
parent04a90fadbd4dcd4fa2276a06f2cf4fdae411b729 (diff)
downloadgsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar.gz
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar.bz2
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar.lz
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar.xz
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.tar.zst
gsoc2013-empathy-94722faf307e2e0d4d1d9532893f0a2206ac4803.zip
We don't need dispose, finalize and private fields in EmpathyFTFactory (yet?).
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-ft-factory.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c
index 407434d68..8aad81a5a 100644
--- a/libempathy/empathy-ft-factory.c
+++ b/libempathy/empathy-ft-factory.c
@@ -37,32 +37,9 @@ enum {
LAST_SIGNAL
};
-typedef struct {
- gboolean dispose_run;
-} EmpathyFTFactoryPriv;
-
static EmpathyFTFactory *factory_singleton = NULL;
static guint signals[LAST_SIGNAL] = { 0 };
-static void
-do_dispose (GObject *object)
-{
- EmpathyFTFactoryPriv *priv = GET_PRIV (object);
-
- if (priv->dispose_run)
- return;
-
- priv->dispose_run = TRUE;
-
- G_OBJECT_CLASS (empathy_ft_factory_parent_class)->dispose (object);
-}
-
-static void
-do_finalize (GObject *object)
-{
- G_OBJECT_CLASS (empathy_ft_factory_parent_class)->finalize (object);
-}
-
static GObject *
do_constructor (GType type,
guint n_props,
@@ -88,10 +65,6 @@ empathy_ft_factory_class_init (EmpathyFTFactoryClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (EmpathyFTFactoryPriv));
-
- object_class->dispose = do_dispose;
- object_class->finalize = do_finalize;
object_class->constructor = do_constructor;
signals[NEW_FT_HANDLER] =
@@ -107,10 +80,7 @@ empathy_ft_factory_class_init (EmpathyFTFactoryClass *klass)
static void
empathy_ft_factory_init (EmpathyFTFactory *self)
{
- EmpathyFTFactoryPriv *priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
- EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactoryPriv);
-
- self->priv = priv;
+ /* do nothing */
}
static void