[librsvg] state: Remove unused adobe blend mode support



commit e210e12bc342e811a61343a47b2991fe57c7c746
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 7 19:48:23 2015 +0200

    state: Remove unused adobe blend mode support
    
    There's no need to keep a variable around when nobody ever looks at it.

 rsvg-styles.c |   29 -----------------------------
 rsvg-styles.h |    1 -
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 96f82c9..9a918ee 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -118,7 +118,6 @@ rsvg_state_init (RsvgState * state)
     cairo_matrix_init_identity (&state->personal_affine);
     state->mask = NULL;
     state->opacity = 0xff;
-    state->adobe_blend = 0;
     state->fill = rsvg_paint_server_parse (NULL, "#000");
     state->fill_opacity = 0xff;
     state->stroke_opacity = 0xff;
@@ -374,7 +373,6 @@ rsvg_state_inherit_run (RsvgState * dst, const RsvgState * src,
         g_free (dst->filter);
         dst->filter = g_strdup (src->filter);
         dst->enable_background = src->enable_background;
-        dst->adobe_blend = src->adobe_blend;
         dst->opacity = src->opacity;
         dst->comp_op = src->comp_op;
     }
@@ -512,33 +510,6 @@ rsvg_parse_style_pair (RsvgHandle * ctx,
     } else if (g_str_equal (name, "filter")) {
         g_free (state->filter);
         state->filter = rsvg_get_url_string (value);
-    } else if (g_str_equal (name, "a:adobe-blending-mode")) {
-        if (g_str_equal (value, "normal"))
-            state->adobe_blend = 0;
-        else if (g_str_equal (value, "multiply"))
-            state->adobe_blend = 1;
-        else if (g_str_equal (value, "screen"))
-            state->adobe_blend = 2;
-        else if (g_str_equal (value, "darken"))
-            state->adobe_blend = 3;
-        else if (g_str_equal (value, "lighten"))
-            state->adobe_blend = 4;
-        else if (g_str_equal (value, "softlight"))
-            state->adobe_blend = 5;
-        else if (g_str_equal (value, "hardlight"))
-            state->adobe_blend = 6;
-        else if (g_str_equal (value, "colordodge"))
-            state->adobe_blend = 7;
-        else if (g_str_equal (value, "colorburn"))
-            state->adobe_blend = 8;
-        else if (g_str_equal (value, "overlay"))
-            state->adobe_blend = 9;
-        else if (g_str_equal (value, "exclusion"))
-            state->adobe_blend = 10;
-        else if (g_str_equal (value, "difference"))
-            state->adobe_blend = 11;
-        else
-            state->adobe_blend = 0;
     } else if (g_str_equal (name, "mask")) {
         g_free (state->mask);
         state->mask = rsvg_get_url_string (value);
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 14f38e5..bd2b5cf 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -82,7 +82,6 @@ struct _RsvgState {
     char *filter;
     char *mask;
     char *clip_path;
-    guint8 adobe_blend;         /* 0..11 */
     guint8 opacity;             /* 0..255 */
 
     RsvgPaintServer *fill;


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