[gegl] buffer: remove unused set/get_property vfuncs
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: remove unused set/get_property vfuncs
- Date: Mon, 23 Apr 2012 13:38:05 +0000 (UTC)
commit 1b8239c4b2d8870d88983358e0a20b0370c5570c
Author: Ãyvind KolÃs <pippin gimp org>
Date: Mon Apr 23 15:00:01 2012 +0200
buffer: remove unused set/get_property vfuncs
gegl/buffer/gegl-sampler-linear.c | 33 -----------------------------
gegl/buffer/gegl-sampler-lohalo.c | 37 ---------------------------------
gegl/buffer/gegl-sampler-nearest.c | 40 ------------------------------------
3 files changed, 0 insertions(+), 110 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-linear.c b/gegl/buffer/gegl-sampler-linear.c
index 57370bf..b3477a5 100644
--- a/gegl/buffer/gegl-sampler-linear.c
+++ b/gegl/buffer/gegl-sampler-linear.c
@@ -68,26 +68,12 @@ static void gegl_sampler_linear_get (GeglSampler* restrict self,
GeglMatrix2 *scale,
void* restrict output);
-static void set_property (GObject* gobject,
- guint property_id,
- const GValue* value,
- GParamSpec* pspec);
-
-static void get_property (GObject* gobject,
- guint property_id,
- GValue* value,
- GParamSpec* pspec);
-
G_DEFINE_TYPE (GeglSamplerLinear, gegl_sampler_linear, GEGL_TYPE_SAMPLER)
static void
gegl_sampler_linear_class_init (GeglSamplerLinearClass *klass)
{
GeglSamplerClass *sampler_class = GEGL_SAMPLER_CLASS (klass);
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- object_class->set_property = set_property;
- object_class->get_property = get_property;
sampler_class->get = gegl_sampler_linear_get;
}
@@ -222,22 +208,3 @@ gegl_sampler_linear_get (GeglSampler* restrict self,
babl_process (self->fish, newval, output, 1);
}
}
-
-static void
-set_property (GObject* gobject,
- guint property_id,
- const GValue* value,
- GParamSpec* pspec)
-{
- G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec);
-}
-
-static void
-get_property (GObject* gobject,
- guint property_id,
- GValue* value,
- GParamSpec* pspec)
-{
- G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec);
-}
-
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 14fc202..312bf97 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -260,29 +260,12 @@ static void gegl_sampler_lohalo_get ( GeglSampler* restrict self,
GeglMatrix2 *scale,
void* restrict output);
-
-static void set_property ( GObject* gobject,
- guint property_id,
- const GValue* value,
- GParamSpec* pspec);
-
-
-static void get_property (GObject* gobject,
- guint property_id,
- GValue* value,
- GParamSpec* pspec);
-
-
G_DEFINE_TYPE (GeglSamplerLohalo, gegl_sampler_lohalo, GEGL_TYPE_SAMPLER)
-
static void
gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
{
GeglSamplerClass *sampler_class = GEGL_SAMPLER_CLASS (klass);
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->set_property = set_property;
- object_class->get_property = get_property;
sampler_class->get = gegl_sampler_lohalo_get;
}
@@ -2429,23 +2412,3 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self,
}
}
}
-
-
-static void
-set_property ( GObject* gobject,
- guint property_id,
- const GValue* value,
- GParamSpec* pspec)
-{
- /* G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec); */
-}
-
-
-static void
-get_property (GObject* gobject,
- guint property_id,
- GValue* value,
- GParamSpec* pspec)
-{
- /* G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec); */
-}
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 0951126..7def771 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -37,14 +37,6 @@ static void gegl_sampler_nearest_get (GeglSampler *self,
gdouble y,
GeglMatrix2 *scale,
void *output);
-static void set_property (GObject *gobject,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec);
-static void get_property (GObject *gobject,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec);
G_DEFINE_TYPE (GeglSamplerNearest, gegl_sampler_nearest, GEGL_TYPE_SAMPLER)
@@ -52,10 +44,6 @@ static void
gegl_sampler_nearest_class_init (GeglSamplerNearestClass *klass)
{
GeglSamplerClass *sampler_class = GEGL_SAMPLER_CLASS (klass);
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- object_class->set_property = set_property;
- object_class->get_property = get_property;
sampler_class->get = gegl_sampler_nearest_get;
@@ -82,31 +70,3 @@ gegl_sampler_nearest_get (GeglSampler *self,
sampler_bptr = gegl_sampler_get_from_buffer (self, (gint)x, (gint)y);
babl_process (self->fish, sampler_bptr, output, 1);
}
-
-static void
-set_property (GObject *gobject,
- guint property_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- switch (property_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec);
- break;
- }
-}
-
-static void
-get_property (GObject *gobject,
- guint property_id,
- GValue *value,
- GParamSpec *pspec)
-{
- switch (property_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, pspec);
- break;
- }
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]