diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-01-08 13:48:13 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-01-08 13:48:13 +0000 |
commit | 95a1320d62dcd4c924a1ea3e3bd954b518f68b72 (patch) | |
tree | 183e94aa82d07557688af6224c4a3a3ccc84efb0 /telepathy-glib/presence-mixin.c | |
parent | a10afb112ae71d2cdaa58ef2c8a98a9b4dfb492f (diff) | |
download | telepathy-glib-95a1320d62dcd4c924a1ea3e3bd954b518f68b72.tar.gz |
TpPresenceMixin: remove references to an empty priv structure
Patch from Sunil Mohan Adapa <sunil@synovel.com>: MSVC++ doesn't
allow empty structures, which are a gcc extension.
Diffstat (limited to 'telepathy-glib/presence-mixin.c')
-rw-r--r-- | telepathy-glib/presence-mixin.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c index ca36f1307..04b48692d 100644 --- a/telepathy-glib/presence-mixin.c +++ b/telepathy-glib/presence-mixin.c @@ -79,11 +79,6 @@ #include "debug-internal.h" -struct _TpPresenceMixinPrivate -{ - /* ... */ -}; - static GHashTable *construct_simple_presence_hash ( const TpPresenceStatusSpec *supported_statuses, GHashTable *contact_statuses); @@ -260,8 +255,6 @@ void tp_presence_mixin_init (GObject *obj, glong offset) { - TpPresenceMixin *mixin; - DEBUG ("called."); g_assert (G_IS_OBJECT (obj)); @@ -269,10 +262,6 @@ tp_presence_mixin_init (GObject *obj, g_type_set_qdata (G_OBJECT_TYPE (obj), TP_PRESENCE_MIXIN_OFFSET_QUARK, GINT_TO_POINTER (offset)); - - mixin = TP_PRESENCE_MIXIN (obj); - - mixin->priv = g_slice_new0 (TpPresenceMixinPrivate); } /** @@ -284,13 +273,9 @@ tp_presence_mixin_init (GObject *obj, void tp_presence_mixin_finalize (GObject *obj) { - TpPresenceMixin *mixin = TP_PRESENCE_MIXIN (obj); - DEBUG ("%p", obj); /* free any data held directly by the object here */ - - g_slice_free (TpPresenceMixinPrivate, mixin->priv); } |