[gtk/wip/baedert/for-master: 28/29] csscolorvalue: Remove unused new_from_rgba()



commit 04387a2884c6937778e88b6a9873e0159a5899d9
Author: Timm Bäder <mail baedert org>
Date:   Fri Aug 23 08:15:42 2019 +0200

    csscolorvalue: Remove unused new_from_rgba()

 gtk/gtkcsscolorvalue.c        | 11 -----------
 gtk/gtkcsscolorvalueprivate.h |  4 ----
 2 files changed, 15 deletions(-)
---
diff --git a/gtk/gtkcsscolorvalue.c b/gtk/gtkcsscolorvalue.c
index 091cb07c85..5bd3185d84 100644
--- a/gtk/gtkcsscolorvalue.c
+++ b/gtk/gtkcsscolorvalue.c
@@ -425,17 +425,6 @@ _gtk_css_color_value_new_literal (const GdkRGBA *color)
   return value;
 }
 
-GtkCssValue *
-_gtk_css_color_value_new_rgba (double red,
-                               double green,
-                               double blue,
-                               double alpha)
-{
-  GdkRGBA rgba = { red, green, blue, alpha };
-
-  return _gtk_css_color_value_new_literal (&rgba);
-}
-
 GtkCssValue *
 _gtk_css_color_value_new_name (const gchar *name)
 {
diff --git a/gtk/gtkcsscolorvalueprivate.h b/gtk/gtkcsscolorvalueprivate.h
index fa199ee6ab..1007b26582 100644
--- a/gtk/gtkcsscolorvalueprivate.h
+++ b/gtk/gtkcsscolorvalueprivate.h
@@ -25,10 +25,6 @@ G_BEGIN_DECLS
 
 
 GtkCssValue *   _gtk_css_color_value_new_literal        (const GdkRGBA  *color);
-GtkCssValue *   _gtk_css_color_value_new_rgba           (double          red,
-                                                         double          green,
-                                                         double          blue,
-                                                         double          alpha);
 GtkCssValue *   _gtk_css_color_value_new_name           (const gchar    *name);
 GtkCssValue *   _gtk_css_color_value_new_shade          (GtkCssValue    *color,
                                                          gdouble         factor);


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