[librsvg] Remove state->personal_affine; it was unused.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove state->personal_affine; it was unused.
- Date: Sun, 25 Mar 2018 01:09:47 +0000 (UTC)
commit f55fce1a735d238c9ee44a763b123618c67982e0
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Mar 24 18:20:05 2018 -0600
Remove state->personal_affine; it was unused.
librsvg/rsvg-base.c | 3 +--
librsvg/rsvg-styles.c | 2 --
librsvg/rsvg-styles.h | 1 -
3 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/librsvg/rsvg-base.c b/librsvg/rsvg-base.c
index f9a0a1b4..0cb202c1 100644
--- a/librsvg/rsvg-base.c
+++ b/librsvg/rsvg-base.c
@@ -1791,8 +1791,7 @@ rsvg_drawing_ctx_get_current_state_affine (RsvgDrawingCtx *ctx)
void
rsvg_drawing_ctx_set_current_state_affine (RsvgDrawingCtx *ctx, cairo_matrix_t *affine)
{
- rsvg_current_state (ctx)->personal_affine =
- rsvg_current_state (ctx)->affine = *affine;
+ rsvg_current_state (ctx)->affine = *affine;
}
void
diff --git a/librsvg/rsvg-styles.c b/librsvg/rsvg-styles.c
index 56006972..8773391f 100644
--- a/librsvg/rsvg-styles.c
+++ b/librsvg/rsvg-styles.c
@@ -103,7 +103,6 @@ rsvg_state_init (RsvgState * state)
state->parent = NULL;
cairo_matrix_init_identity (&state->affine);
- cairo_matrix_init_identity (&state->personal_affine);
state->mask = NULL;
state->opacity = 0xff;
state->baseline_shift = 0.;
@@ -1529,7 +1528,6 @@ rsvg_parse_transform_attr (RsvgState *state, const char *str)
cairo_matrix_t affine;
if (rsvg_parse_transform (&affine, str)) {
- cairo_matrix_multiply (&state->personal_affine, &affine, &state->personal_affine);
cairo_matrix_multiply (&state->affine, &affine, &state->affine);
return TRUE;
} else {
diff --git a/librsvg/rsvg-styles.h b/librsvg/rsvg-styles.h
index 850a285e..1a4a360e 100644
--- a/librsvg/rsvg-styles.h
+++ b/librsvg/rsvg-styles.h
@@ -70,7 +70,6 @@ typedef struct State State;
struct _RsvgState {
RsvgState *parent;
cairo_matrix_t affine;
- cairo_matrix_t personal_affine;
char *filter;
char *mask;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]