[PATCH 3/4] Remove the get and set property functions.
Vratislav Podzimek
vpodzime at redhat.com
Wed Nov 6 07:52:43 UTC 2013
On Tue, 2013-11-05 at 17:01 -0500, David Shea wrote:
> TimezoneMap has no properties, so there's no need to handle them.
> ---
> widgets/src/TimezoneMap.c | 24 ------------------------
> 1 file changed, 24 deletions(-)
>
> diff --git a/widgets/src/TimezoneMap.c b/widgets/src/TimezoneMap.c
> index 7cce165..bcb2199 100644
> --- a/widgets/src/TimezoneMap.c
> +++ b/widgets/src/TimezoneMap.c
> @@ -129,28 +129,6 @@ GtkWidget *anaconda_timezone_map_new () {
> }
>
> static void
> -anaconda_timezone_map_get_property (GObject *object,
> - guint property_id,
> - GValue *value,
> - GParamSpec *pspec) {
> - switch (property_id) {
> - default:
> - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
> - }
> -}
> -
> -static void
> -anaconda_timezone_map_set_property (GObject *object,
> - guint property_id,
> - const GValue *value,
> - GParamSpec *pspec) {
> - switch (property_id) {
> - default:
> - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
> - }
> -}
> -
> -static void
> anaconda_timezone_map_dispose (GObject *object) {
> AnacondaTimezoneMapPrivate *priv = ANACONDA_TIMEZONE_MAP (object)->priv;
>
> @@ -397,8 +375,6 @@ anaconda_timezone_map_class_init (AnacondaTimezoneMapClass *klass) {
>
> g_type_class_add_private (klass, sizeof (AnacondaTimezoneMapPrivate));
>
> - object_class->get_property = anaconda_timezone_map_get_property;
> - object_class->set_property = anaconda_timezone_map_set_property;
> object_class->dispose = anaconda_timezone_map_dispose;
> object_class->finalize = anaconda_timezone_map_finalize;
This one looks good to me.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list