From 9a066768d773786df80609987546aceef696f3c0 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Tue, 23 Jun 2009 15:55:29 +0200 Subject: [PATCH] [AdgModel] Removed PARENT_CLASS define Also got rid of the unused finalize() callback: it will be redefined when (and if) needed (previously it was just a placeholder). --- adg/adg-model.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/adg/adg-model.c b/adg/adg-model.c index 3f6286e2..233938c6 100644 --- a/adg/adg-model.c +++ b/adg/adg-model.c @@ -45,8 +45,6 @@ #include "adg-model-private.h" #include "adg-intl.h" -#define PARENT_CLASS ((GObjectClass *) adg_model_parent_class) - enum { PROP_0 @@ -58,7 +56,6 @@ enum { }; -static void finalize (GObject *object); static void get_property (GObject *object, guint prop_id, GValue *value, @@ -84,7 +81,6 @@ adg_model_class_init(AdgModelClass *klass) g_type_class_add_private(klass, sizeof(AdgModelPrivate)); - gobject_class->finalize = finalize; gobject_class->get_property = get_property; gobject_class->set_property = set_property; @@ -114,15 +110,6 @@ adg_model_init(AdgModel *model) } static void -finalize(GObject *object) -{ - /* TODO: this is only a placeholder */ - - PARENT_CLASS->finalize(object); -} - - -static void get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { -- 2.11.4.GIT