[gnome-color-manager] trivial: Remove some dead code
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: Remove some dead code
- Date: Fri, 27 Nov 2009 22:38:39 +0000 (UTC)
commit 44ec3cc46a57d7e4e1f5d4c47cc43b48bcad1949
Author: Richard Hughes <richard hughsie com>
Date: Fri Nov 27 22:37:58 2009 +0000
trivial: Remove some dead code
src/gcm-clut.c | 57 --------------------------------------------------------
src/gcm-clut.h | 4 ---
2 files changed, 0 insertions(+), 61 deletions(-)
---
diff --git a/src/gcm-clut.c b/src/gcm-clut.c
index 1ef0ca5..487dd34 100644
--- a/src/gcm-clut.c
+++ b/src/gcm-clut.c
@@ -56,10 +56,7 @@ struct _GcmClutPrivate
gfloat gamma;
gfloat brightness;
gfloat contrast;
- gchar *id;
gchar *profile;
- gchar *description;
- gchar *copyright;
GConfClient *gconf_client;
};
@@ -110,13 +107,7 @@ gcm_clut_reset (GcmClut *clut)
{
g_return_val_if_fail (GCM_IS_CLUT (clut), FALSE);
- /* remove old data */
- g_free (clut->priv->copyright);
- g_free (clut->priv->description);
-
/* setup nothing */
- clut->priv->copyright = NULL;
- clut->priv->description = NULL;
g_ptr_array_set_size (clut->priv->array, 0);
return TRUE;
}
@@ -157,14 +148,6 @@ gcm_clut_load_from_profile (GcmClut *clut, GError **error)
data = gcm_profile_generate (profile, clut->priv->size);
if (data != NULL)
gcm_clut_set_from_data (clut, data, clut->priv->size);
-
- /* copy the description */
- g_free (clut->priv->copyright);
- g_free (clut->priv->description);
- g_object_get (profile,
- "copyright", &clut->priv->copyright,
- "description", &clut->priv->description,
- NULL);
out:
if (profile != NULL)
g_object_unref (profile);
@@ -267,9 +250,6 @@ gcm_clut_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec
case PROP_SIZE:
g_value_set_uint (value, priv->size);
break;
- case PROP_ID:
- g_value_set_string (value, priv->id);
- break;
case PROP_GAMMA:
g_value_set_float (value, priv->gamma);
break;
@@ -282,12 +262,6 @@ gcm_clut_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec
case PROP_PROFILE:
g_value_set_string (value, priv->profile);
break;
- case PROP_COPYRIGHT:
- g_value_set_string (value, priv->copyright);
- break;
- case PROP_DESCRIPTION:
- g_value_set_string (value, priv->description);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -307,10 +281,6 @@ gcm_clut_set_property (GObject *object, guint prop_id, const GValue *value, GPar
case PROP_SIZE:
priv->size = g_value_get_uint (value);
break;
- case PROP_ID:
- g_free (priv->id);
- priv->id = g_strdup (g_value_get_string (value));
- break;
case PROP_PROFILE:
g_free (priv->profile);
priv->profile = g_strdup (g_value_get_string (value));
@@ -351,14 +321,6 @@ gcm_clut_class_init (GcmClutClass *klass)
g_object_class_install_property (object_class, PROP_SIZE, pspec);
/**
- * GcmClut:id:
- */
- pspec = g_param_spec_string ("id", NULL, NULL,
- NULL,
- G_PARAM_READWRITE);
- g_object_class_install_property (object_class, PROP_ID, pspec);
-
- /**
* GcmClut:gamma:
*/
pspec = g_param_spec_float ("gamma", NULL, NULL,
@@ -383,22 +345,6 @@ gcm_clut_class_init (GcmClutClass *klass)
g_object_class_install_property (object_class, PROP_CONTRAST, pspec);
/**
- * GcmClut:copyright:
- */
- pspec = g_param_spec_string ("copyright", NULL, NULL,
- NULL,
- G_PARAM_READABLE);
- g_object_class_install_property (object_class, PROP_COPYRIGHT, pspec);
-
- /**
- * GcmClut:description:
- */
- pspec = g_param_spec_string ("description", NULL, NULL,
- NULL,
- G_PARAM_READABLE);
- g_object_class_install_property (object_class, PROP_DESCRIPTION, pspec);
-
- /**
* GcmClut:profile:
*/
pspec = g_param_spec_string ("profile", NULL, NULL,
@@ -440,10 +386,7 @@ gcm_clut_finalize (GObject *object)
GcmClut *clut = GCM_CLUT (object);
GcmClutPrivate *priv = clut->priv;
- g_free (clut->priv->copyright);
- g_free (clut->priv->description);
g_free (clut->priv->profile);
- g_free (clut->priv->id);
g_ptr_array_unref (priv->array);
g_object_unref (clut->priv->gconf_client);
diff --git a/src/gcm-clut.h b/src/gcm-clut.h
index ac78581..0d7438e 100644
--- a/src/gcm-clut.h
+++ b/src/gcm-clut.h
@@ -64,10 +64,6 @@ GType gcm_clut_get_type (void);
GcmClut *gcm_clut_new (void);
gboolean gcm_clut_load_from_profile (GcmClut *clut,
GError **error);
-gboolean gcm_clut_load_from_config (GcmClut *clut,
- GError **error);
-gboolean gcm_clut_save_to_config (GcmClut *clut,
- GError **error);
GPtrArray *gcm_clut_get_array (GcmClut *clut);
gboolean gcm_clut_reset (GcmClut *clut);
void gcm_clut_print (GcmClut *clut);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]