[gtk/wip/baedert/for-master: 57/70] css: Remove unused function



commit b237837d27f7f2e6fd9737c24be357be3c78fbc3
Author: Timm Bäder <mail baedert org>
Date:   Tue Jan 28 14:48:10 2020 +0100

    css: Remove unused function

 gtk/gtkcsstypes.c        | 42 ------------------------------------------
 gtk/gtkcsstypesprivate.h |  2 --
 2 files changed, 44 deletions(-)
---
diff --git a/gtk/gtkcsstypes.c b/gtk/gtkcsstypes.c
index 66b3415d81..5cead98c03 100644
--- a/gtk/gtkcsstypes.c
+++ b/gtk/gtkcsstypes.c
@@ -22,48 +22,6 @@
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkstylecontextprivate.h"
 
-cairo_operator_t
-_gtk_css_blend_mode_get_operator (GskBlendMode mode)
-{
-  switch (mode)
-    {
-    case GSK_BLEND_MODE_COLOR:
-      return CAIRO_OPERATOR_HSL_COLOR;
-    case GSK_BLEND_MODE_COLOR_BURN:
-      return CAIRO_OPERATOR_COLOR_BURN;
-    case GSK_BLEND_MODE_COLOR_DODGE:
-      return CAIRO_OPERATOR_COLOR_DODGE;
-    case GSK_BLEND_MODE_DARKEN:
-      return CAIRO_OPERATOR_DARKEN;
-    case GSK_BLEND_MODE_DIFFERENCE:
-      return CAIRO_OPERATOR_DIFFERENCE;
-    case GSK_BLEND_MODE_EXCLUSION:
-      return CAIRO_OPERATOR_EXCLUSION;
-    case GSK_BLEND_MODE_HARD_LIGHT:
-      return CAIRO_OPERATOR_HARD_LIGHT;
-    case GSK_BLEND_MODE_SOFT_LIGHT:
-      return CAIRO_OPERATOR_SOFT_LIGHT;
-    case GSK_BLEND_MODE_HUE:
-      return CAIRO_OPERATOR_HSL_HUE;
-    case GSK_BLEND_MODE_LIGHTEN:
-      return CAIRO_OPERATOR_LIGHTEN;
-    case GSK_BLEND_MODE_LUMINOSITY:
-      return CAIRO_OPERATOR_HSL_LUMINOSITY;
-    case GSK_BLEND_MODE_MULTIPLY:
-      return CAIRO_OPERATOR_MULTIPLY;
-    case GSK_BLEND_MODE_OVERLAY:
-      return CAIRO_OPERATOR_OVERLAY;
-    case GSK_BLEND_MODE_SATURATION:
-      return CAIRO_OPERATOR_HSL_SATURATION;
-    case GSK_BLEND_MODE_SCREEN:
-      return CAIRO_OPERATOR_SCREEN;
-
-    case GSK_BLEND_MODE_DEFAULT:
-    default:
-      return CAIRO_OPERATOR_OVER;
-    }
-}
-
 GtkCssChange
 _gtk_css_change_for_sibling (GtkCssChange match)
 {
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index 647379b343..1e18fac297 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -446,8 +446,6 @@ typedef enum /*< skip >*/ {
   GTK_CSS_FONT_VARIANT_EAST_ASIAN_RUBY         = 1 << 9
 } GtkCssFontVariantEastAsian;
 
-cairo_operator_t        _gtk_css_blend_mode_get_operator         (GskBlendMode       mode);
-
 GtkCssChange            _gtk_css_change_for_sibling              (GtkCssChange       match);
 GtkCssChange            _gtk_css_change_for_child                (GtkCssChange       match);
 


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