[gegl/video-rejuvenation: 78/83] remove unused duplicate function
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/video-rejuvenation: 78/83] remove unused duplicate function
- Date: Thu, 19 Nov 2015 21:48:54 +0000 (UTC)
commit e1fa7323dc0d776ce01b532923e4f68d75628e21
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Nov 19 01:24:27 2015 +0100
remove unused duplicate function
gegl/property-types/gegl-audio.c | 45 +------------------------------------
1 files changed, 2 insertions(+), 43 deletions(-)
---
diff --git a/gegl/property-types/gegl-audio.c b/gegl/property-types/gegl-audio.c
index e005009..601c1fe 100644
--- a/gegl/property-types/gegl-audio.c
+++ b/gegl/property-types/gegl-audio.c
@@ -110,20 +110,6 @@ gegl_audio_new (void)
return g_object_new (GEGL_TYPE_AUDIO, NULL);
}
-GeglAudio *
-gegl_audio_duplicate (GeglAudio *audio)
-{
- GeglAudio *new;
-
- g_return_val_if_fail (GEGL_IS_AUDIO (audio), NULL);
-
- new = g_object_new (GEGL_TYPE_AUDIO, NULL);
-
- memcpy (new->priv, audio->priv, sizeof (GeglAudioPrivate));
-
- return new;
-}
-
/* --------------------------------------------------------------------------
* A GParamSpec class to describe behavior of GeglAudio as an object property
* follows.
@@ -138,38 +124,19 @@ typedef struct _GeglParamAudio GeglParamAudio;
struct _GeglParamAudio
{
GParamSpec parent_instance;
-
- GeglAudio *default_audio;
};
static void
gegl_param_audio_init (GParamSpec *self)
{
- GEGL_PARAM_AUDIO (self)->default_audio = NULL;
}
-#if 0
-GeglAudio *
-gegl_param_spec_audio_get_default (GParamSpec *self)
-{
- return GEGL_PARAM_AUDIO (self)->default_audio;
-}
-#endif
-
static void
gegl_param_audio_finalize (GParamSpec *self)
{
- GeglParamAudio *param_audio = GEGL_PARAM_AUDIO (self);
+ //GeglParamAudio *param_audio = GEGL_PARAM_AUDIO (self);
GParamSpecClass *parent_class = g_type_class_peek (g_type_parent (GEGL_TYPE_PARAM_AUDIO));
- if (param_audio->default_audio)
- {
- g_object_unref (param_audio->default_audio);
- param_audio->default_audio = NULL;
- }
-
- g_warning ("...\n");
-
parent_class->finalize (self);
}
@@ -177,10 +144,7 @@ static void
gegl_param_audio_set_default (GParamSpec *param_spec,
GValue *value)
{
- GeglParamAudio *gegl_audio = GEGL_PARAM_AUDIO (param_spec);
-
- if (gegl_audio->default_audio)
- g_value_take_object (value, gegl_audio_duplicate (gegl_audio->default_audio));
+ //GeglParamAudio *gegl_audio = GEGL_PARAM_AUDIO (param_spec);
}
GType
@@ -213,7 +177,6 @@ GParamSpec *
gegl_param_spec_audio (const gchar *name,
const gchar *nick,
const gchar *blurb,
- // GeglAudio *default_audio,
GParamFlags flags)
{
GeglParamAudio *param_audio;
@@ -221,9 +184,5 @@ gegl_param_spec_audio (const gchar *name,
param_audio = g_param_spec_internal (GEGL_TYPE_PARAM_AUDIO,
name, nick, blurb, flags);
- //param_audio->default_audio = default_audio;
- //if (default_audio)
- // g_object_ref (default_audio);
-
return G_PARAM_SPEC (param_audio);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]