summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2018-05-30 07:57:44 -0500
committerFederico Mena Quintero <federico@gnome.org>2018-05-30 07:57:44 -0500
commit1b2a09b1e9bbb6a159255d1a5e447dc405bb0669 (patch)
treead3a658c4ce2985141638ad563678c6135e8a152
parent1366ae0faaa78b63807a8e99e11830cba5dfda51 (diff)
downloadlibrsvg-1b2a09b1e9bbb6a159255d1a5e447dc405bb0669.tar.gz
State.affine - removed field; it's unused now
-rw-r--r--rsvg_internals/src/state.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/rsvg_internals/src/state.rs b/rsvg_internals/src/state.rs
index 7f7b585d..703b6a14 100644
--- a/rsvg_internals/src/state.rs
+++ b/rsvg_internals/src/state.rs
@@ -1,4 +1,3 @@
-use cairo::{self, MatrixTrait};
use cssparser;
use glib;
use glib::translate::*;
@@ -91,7 +90,6 @@ pub enum RsvgState {}
/// `.unwrap_or_default()` to get the default value for the property.
pub struct State {
- pub affine: cairo::Matrix,
pub values: SpecifiedValues,
important_styles: RefCell<HashSet<Attribute>>,
pub cond: bool,
@@ -342,7 +340,6 @@ impl SpecifiedValues {
impl State {
fn new() -> State {
State {
- affine: cairo::Matrix::identity(),
values: Default::default(),
important_styles: Default::default(),
cond: true,
@@ -1532,15 +1529,6 @@ fn parse_style_attrs(
}
}
- Attribute::Transform => match cairo::Matrix::parse(value, ()) {
- Ok(affine) => state.affine = cairo::Matrix::multiply(&affine, &state.affine),
-
- Err(e) => {
- node.set_error(NodeError::attribute_error(Attribute::Transform, e));
- break;
- }
- },
-
_ => (),
}
}