[gegl] property-types: remove unused paramspecs



commit a1a77144c97a3ba21d14611d77bd592a92049db3
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 30 02:42:46 2012 +0100

    property-types: remove unused paramspecs

 gegl/property-types/gegl-paramspecs.c |  270 ---------------------------------
 gegl/property-types/gegl-paramspecs.h |  111 --------------
 2 files changed, 0 insertions(+), 381 deletions(-)
---
diff --git a/gegl/property-types/gegl-paramspecs.c b/gegl/property-types/gegl-paramspecs.c
index 7cb2f66..d51c42e 100644
--- a/gegl/property-types/gegl-paramspecs.c
+++ b/gegl/property-types/gegl-paramspecs.c
@@ -26,276 +26,6 @@
 #include <glib-object.h>
 #include "gegl-paramspecs.h"
 
-
-/*
- * GEGL_TYPE_INT32
- */
-
-GType
-gegl_int32_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info = { 0, };
-
-      type = g_type_register_static (G_TYPE_INT, "GeglInt32", &info, 0);
-    }
-
-  return type;
-}
-
-
-/*
- * GEGL_TYPE_PARAM_INT32
- */
-
-static void   gegl_param_int32_class_init (GParamSpecClass *klass);
-static void   gegl_param_int32_init (GParamSpec *pspec);
-
-GType
-gegl_param_int32_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info =
-      {
-        sizeof (GParamSpecClass),
-        NULL,                                         NULL,
-        (GClassInitFunc) gegl_param_int32_class_init,
-        NULL,                                         NULL,
-        sizeof (GeglParamSpecInt32),
-        0,
-        (GInstanceInitFunc) gegl_param_int32_init
-      };
-
-      type = g_type_register_static (G_TYPE_PARAM_INT,
-                                     "GeglParamInt32", &info, 0);
-    }
-
-  return type;
-}
-
-static void
-gegl_param_int32_class_init (GParamSpecClass *klass)
-{
-  klass->value_type = GEGL_TYPE_INT32;
-}
-
-static void
-gegl_param_int32_init (GParamSpec *pspec)
-{
-}
-
-GParamSpec *
-gegl_param_spec_int32 (const gchar *name,
-                       const gchar *nick,
-                       const gchar *blurb,
-                       gint         minimum,
-                       gint         maximum,
-                       gint         default_value,
-                       GParamFlags  flags)
-{
-  GParamSpecInt *ispec;
-
-  g_return_val_if_fail (minimum >= G_MININT32, NULL);
-  g_return_val_if_fail (maximum <= G_MAXINT32, NULL);
-  g_return_val_if_fail (default_value >= minimum &&
-                        default_value <= maximum, NULL);
-
-  ispec = g_param_spec_internal (GEGL_TYPE_PARAM_INT32,
-                                 name, nick, blurb, flags);
-
-  ispec->minimum       = minimum;
-  ispec->maximum       = maximum;
-  ispec->default_value = default_value;
-
-  return G_PARAM_SPEC (ispec);
-}
-
-
-/*
- * GEGL_TYPE_INT16
- */
-
-GType
-gegl_int16_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info = { 0, };
-
-      type = g_type_register_static (G_TYPE_INT, "GeglInt16", &info, 0);
-    }
-
-  return type;
-}
-
-
-/*
- * GEGL_TYPE_PARAM_INT16
- */
-
-static void   gegl_param_int16_class_init (GParamSpecClass *klass);
-static void   gegl_param_int16_init (GParamSpec *pspec);
-
-GType
-gegl_param_int16_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info =
-      {
-        sizeof (GParamSpecClass),
-        NULL,                                         NULL,
-        (GClassInitFunc) gegl_param_int16_class_init,
-        NULL,                                         NULL,
-        sizeof (GeglParamSpecInt16),
-        0,
-        (GInstanceInitFunc) gegl_param_int16_init
-      };
-
-      type = g_type_register_static (G_TYPE_PARAM_INT,
-                                     "GeglParamInt16", &info, 0);
-    }
-
-  return type;
-}
-
-static void
-gegl_param_int16_class_init (GParamSpecClass *klass)
-{
-  klass->value_type = GEGL_TYPE_INT16;
-}
-
-static void
-gegl_param_int16_init (GParamSpec *pspec)
-{
-}
-
-GParamSpec *
-gegl_param_spec_int16 (const gchar *name,
-                       const gchar *nick,
-                       const gchar *blurb,
-                       gint         minimum,
-                       gint         maximum,
-                       gint         default_value,
-                       GParamFlags  flags)
-{
-  GParamSpecInt *ispec;
-
-  g_return_val_if_fail (minimum >= G_MININT16, NULL);
-  g_return_val_if_fail (maximum <= G_MAXINT16, NULL);
-  g_return_val_if_fail (default_value >= minimum &&
-                        default_value <= maximum, NULL);
-
-  ispec = g_param_spec_internal (GEGL_TYPE_PARAM_INT16,
-                                 name, nick, blurb, flags);
-
-  ispec->minimum       = minimum;
-  ispec->maximum       = maximum;
-  ispec->default_value = default_value;
-
-  return G_PARAM_SPEC (ispec);
-}
-
-
-/*
- * GEGL_TYPE_INT8
- */
-
-GType
-gegl_int8_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info = { 0, };
-
-      type = g_type_register_static (G_TYPE_UINT, "GeglInt8", &info, 0);
-    }
-
-  return type;
-}
-
-
-/*
- * GEGL_TYPE_PARAM_INT8
- */
-
-static void   gegl_param_int8_class_init (GParamSpecClass *klass);
-static void   gegl_param_int8_init (GParamSpec *pspec);
-
-GType
-gegl_param_int8_get_type (void)
-{
-  static GType type = 0;
-
-  if (!type)
-    {
-      const GTypeInfo info =
-      {
-        sizeof (GParamSpecClass),
-        NULL,                                        NULL,
-        (GClassInitFunc) gegl_param_int8_class_init,
-        NULL,                                        NULL,
-        sizeof (GeglParamSpecInt8),
-        0,
-        (GInstanceInitFunc) gegl_param_int8_init
-      };
-
-      type = g_type_register_static (G_TYPE_PARAM_UINT,
-                                     "GeglParamInt8", &info, 0);
-    }
-
-  return type;
-}
-
-static void
-gegl_param_int8_class_init (GParamSpecClass *klass)
-{
-  klass->value_type = GEGL_TYPE_INT8;
-}
-
-static void
-gegl_param_int8_init (GParamSpec *pspec)
-{
-}
-
-GParamSpec *
-gegl_param_spec_int8 (const gchar *name,
-                      const gchar *nick,
-                      const gchar *blurb,
-                      guint        minimum,
-                      guint        maximum,
-                      guint        default_value,
-                      GParamFlags  flags)
-{
-  GParamSpecInt *ispec;
-
-  g_return_val_if_fail (maximum <= G_MAXUINT8, NULL);
-  g_return_val_if_fail (default_value >= minimum &&
-                        default_value <= maximum, NULL);
-
-  ispec = g_param_spec_internal (GEGL_TYPE_PARAM_INT8,
-                                 name, nick, blurb, flags);
-
-  ispec->minimum       = minimum;
-  ispec->maximum       = maximum;
-  ispec->default_value = default_value;
-
-  return G_PARAM_SPEC (ispec);
-}
-
-
 /*
  * GEGL_TYPE_PARAM_STRING
  */
diff --git a/gegl/property-types/gegl-paramspecs.h b/gegl/property-types/gegl-paramspecs.h
index 19e0b64..ed3e87a 100644
--- a/gegl/property-types/gegl-paramspecs.h
+++ b/gegl/property-types/gegl-paramspecs.h
@@ -34,117 +34,6 @@ G_BEGIN_DECLS
 
 
 /*
- * GEGL_TYPE_INT32
- */
-
-#define GEGL_TYPE_INT32               (gegl_int32_get_type ())
-#define GEGL_VALUE_HOLDS_INT32(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
-                                       GEGL_TYPE_INT32))
-
-GType   gegl_int32_get_type           (void) G_GNUC_CONST;
-
-
-/*
- * GEGL_TYPE_PARAM_INT32
- */
-
-#define GEGL_TYPE_PARAM_INT32           (gegl_param_int32_get_type ())
-#define GEGL_PARAM_SPEC_INT32(pspec)    (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GEGL_TYPE_PARAM_INT32, GeglParamSpecInt32))
-#define GEGL_IS_PARAM_SPEC_INT32(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GEGL_TYPE_PARAM_INT32))
-
-typedef struct _GeglParamSpecInt32 GeglParamSpecInt32;
-
-struct _GeglParamSpecInt32
-{
-  GParamSpecInt parent_instance;
-};
-
-GType        gegl_param_int32_get_type (void) G_GNUC_CONST;
-
-GParamSpec * gegl_param_spec_int32     (const gchar *name,
-                                        const gchar *nick,
-                                        const gchar *blurb,
-                                        gint         minimum,
-                                        gint         maximum,
-                                        gint         default_value,
-                                        GParamFlags  flags);
-
-
-/*
- * GEGL_TYPE_INT16
- */
-
-#define GEGL_TYPE_INT16               (gegl_int16_get_type ())
-#define GEGL_VALUE_HOLDS_INT16(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
-                                       GEGL_TYPE_INT16))
-
-GType   gegl_int16_get_type           (void) G_GNUC_CONST;
-
-
-/*
- * GEGL_TYPE_PARAM_INT16
- */
-
-#define GEGL_TYPE_PARAM_INT16           (gegl_param_int16_get_type ())
-#define GEGL_PARAM_SPEC_INT16(pspec)    (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GEGL_TYPE_PARAM_INT16, GeglParamSpecInt16))
-#define GEGL_IS_PARAM_SPEC_INT16(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GEGL_TYPE_PARAM_INT16))
-
-typedef struct _GeglParamSpecInt16 GeglParamSpecInt16;
-
-struct _GeglParamSpecInt16
-{
-  GParamSpecInt parent_instance;
-};
-
-GType        gegl_param_int16_get_type (void) G_GNUC_CONST;
-
-GParamSpec * gegl_param_spec_int16     (const gchar *name,
-                                        const gchar *nick,
-                                        const gchar *blurb,
-                                        gint         minimum,
-                                        gint         maximum,
-                                        gint         default_value,
-                                        GParamFlags  flags);
-
-
-/*
- * GEGL_TYPE_INT8
- */
-
-#define GEGL_TYPE_INT8               (gegl_int8_get_type ())
-#define GEGL_VALUE_HOLDS_INT8(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
-                                      GEGL_TYPE_INT8))
-
-GType   gegl_int8_get_type           (void) G_GNUC_CONST;
-
-
-/*
- * GEGL_TYPE_PARAM_INT8
- */
-
-#define GEGL_TYPE_PARAM_INT8           (gegl_param_int8_get_type ())
-#define GEGL_PARAM_SPEC_INT8(pspec)    (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GEGL_TYPE_PARAM_INT8, GeglParamSpecInt8))
-#define GEGL_IS_PARAM_SPEC_INT8(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GEGL_TYPE_PARAM_INT8))
-
-typedef struct _GeglParamSpecInt8 GeglParamSpecInt8;
-
-struct _GeglParamSpecInt8
-{
-  GParamSpecUInt parent_instance;
-};
-
-GType        gegl_param_int8_get_type (void) G_GNUC_CONST;
-
-GParamSpec * gegl_param_spec_int8     (const gchar *name,
-                                       const gchar *nick,
-                                       const gchar *blurb,
-                                       guint        minimum,
-                                       guint        maximum,
-                                       guint        default_value,
-                                       GParamFlags  flags);
-
-
-/*
  * GEGL_TYPE_PARAM_STRING
  */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]