[librsvg] paint-server: Remove unused argument from function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] paint-server: Remove unused argument from function
- Date: Thu, 22 Oct 2015 11:12:39 +0000 (UTC)
commit f85f5dea28172480bf0a273319e8c8c73945d427
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 7 10:20:23 2015 +0200
paint-server: Remove unused argument from function
rsvg-paint-server.c | 3 +--
rsvg-paint-server.h | 2 +-
rsvg-styles.c | 6 +++---
3 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/rsvg-paint-server.c b/rsvg-paint-server.c
index 7845115..52c9c00 100644
--- a/rsvg-paint-server.c
+++ b/rsvg-paint-server.c
@@ -111,8 +111,7 @@ rsvg_paint_server_pattern (RsvgPattern * pattern)
* on error.
**/
RsvgPaintServer *
-rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs, const char *str,
- guint32 current_color)
+rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs, const char *str)
{
char *name;
guint32 argb;
diff --git a/rsvg-paint-server.h b/rsvg-paint-server.h
index bf48368..37ab8f1 100644
--- a/rsvg-paint-server.h
+++ b/rsvg-paint-server.h
@@ -139,7 +139,7 @@ struct _RsvgPaintServer {
/* Create a new paint server based on a specification string. */
G_GNUC_INTERNAL
RsvgPaintServer *rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs,
- const char *str, guint32 current_color);
+ const char *str);
G_GNUC_INTERNAL
void rsvg_paint_server_ref (RsvgPaintServer * ps);
G_GNUC_INTERNAL
diff --git a/rsvg-styles.c b/rsvg-styles.c
index dec8937..28e8dfd 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -119,7 +119,7 @@ rsvg_state_init (RsvgState * state)
state->mask = NULL;
state->opacity = 0xff;
state->adobe_blend = 0;
- state->fill = rsvg_paint_server_parse (NULL, NULL, "#000", 0);
+ state->fill = rsvg_paint_server_parse (NULL, NULL, "#000");
state->fill_opacity = 0xff;
state->stroke_opacity = 0xff;
state->stroke_width = _rsvg_css_parse_length ("1");
@@ -616,7 +616,7 @@ rsvg_parse_style_pair (RsvgHandle * ctx,
} else if (g_str_equal (name, "fill")) {
RsvgPaintServer *fill = state->fill;
state->fill =
- rsvg_paint_server_parse (&state->has_fill_server, ctx->priv->defs, value, 0);
+ rsvg_paint_server_parse (&state->has_fill_server, ctx->priv->defs, value);
rsvg_paint_server_unref (fill);
} else if (g_str_equal (name, "fill-opacity")) {
state->fill_opacity = rsvg_css_parse_opacity (value);
@@ -641,7 +641,7 @@ rsvg_parse_style_pair (RsvgHandle * ctx,
RsvgPaintServer *stroke = state->stroke;
state->stroke =
- rsvg_paint_server_parse (&state->has_stroke_server, ctx->priv->defs, value, 0);
+ rsvg_paint_server_parse (&state->has_stroke_server, ctx->priv->defs, value);
rsvg_paint_server_unref (stroke);
} else if (g_str_equal (name, "stroke-width")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]