[gtk+/wip/cssvalue: 34/142] cssvalue: Remove unused functions



commit 9d230872e6e0fab64aa517d680747729216b114b
Author: Benjamin Otte <otte redhat com>
Date:   Fri Mar 23 16:19:22 2012 +0100

    cssvalue: Remove unused functions

 gtk/gtkcssvalue.c        |   30 ------------------------------
 gtk/gtkcssvalueprivate.h |    3 ---
 2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/gtk/gtkcssvalue.c b/gtk/gtkcssvalue.c
index 07d2542..18d6f91 100644
--- a/gtk/gtkcssvalue.c
+++ b/gtk/gtkcssvalue.c
@@ -185,17 +185,6 @@ _gtk_css_value_new_take_string (char *string)
   return value;
 }
 
-GtkCssValue *
-_gtk_css_value_new_from_string (const char *string)
-{
-  GtkCssValue *value;
-
-  value = _gtk_css_value_new (G_TYPE_STRING);
-  value->u.ptr = g_strdup (string);
-
-  return value;
-}
-
 static gpointer
 g_boxed_copy0 (GType         boxed_type,
 	       gconstpointer src_boxed)
@@ -457,25 +446,6 @@ _gtk_css_value_init_gvalue (GtkCssValue *value,
     }
 }
 
-void
-_gtk_css_value_to_gvalue (GtkCssValue *value,
-			  GValue      *g_value)
-{
-  if (value->type == G_VALUE_TYPE (g_value))
-    fill_gvalue (value, g_value);
-  else if (g_value_type_transformable (value->type, G_VALUE_TYPE (g_value)))
-    {
-      GValue v = G_VALUE_INIT;
-      _gtk_css_value_init_gvalue (value, &v);
-      g_value_transform (&v, g_value);
-      g_value_unset (&v);
-    }
-  else
-    g_warning ("can't convert css value of type `%s' as value of type `%s'",
-	       g_type_name (value->type),
-	       G_VALUE_TYPE_NAME (g_value));
-}
-
 gboolean
 _gtk_css_value_is_special  (GtkCssValue *value)
 {
diff --git a/gtk/gtkcssvalueprivate.h b/gtk/gtkcssvalueprivate.h
index ceec4ef..49f7715 100644
--- a/gtk/gtkcssvalueprivate.h
+++ b/gtk/gtkcssvalueprivate.h
@@ -48,7 +48,6 @@ gboolean     _gtk_css_value_holds                     (GtkCssValue
 GtkCssValue *_gtk_css_value_new_from_gvalue           (const GValue               *g_value);
 GtkCssValue *_gtk_css_value_new_take_gvalue           (GValue                     *g_value);
 GtkCssValue *_gtk_css_value_new_from_int              (gint                        val);
-GtkCssValue *_gtk_css_value_new_from_string           (const char                 *string);
 GtkCssValue *_gtk_css_value_new_take_string           (char                       *string);
 GtkCssValue *_gtk_css_value_new_take_font_description (PangoFontDescription       *v);
 GtkCssValue *_gtk_css_value_new_from_rgba             (const GdkRGBA              *v);
@@ -62,8 +61,6 @@ GtkCssValue *_gtk_css_value_new_take_image            (GtkCssImage
 GtkCssValue *_gtk_css_value_new_from_number           (const GtkCssNumber         *v);
 GtkCssValue *_gtk_css_value_new_from_background_size  (const GtkCssBackgroundSize *v);
 GtkCssValue *_gtk_css_value_new_from_background_position (const GtkCssBackgroundPosition *v);
-void         _gtk_css_value_to_gvalue                 (GtkCssValue                *value,
-						       GValue                     *g_value);
 void         _gtk_css_value_init_gvalue               (GtkCssValue                *value,
 						       GValue                     *g_value);
 



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