[librsvg] svg: remove css_styles, it is unused



commit 8cf4659fba7de960da651d4a93a064b91d1857d0
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jan 12 15:15:35 2019 +0100

    svg: remove css_styles, it is unused

 rsvg_internals/src/svg.rs | 5 -----
 rsvg_internals/src/xml.rs | 1 -
 2 files changed, 6 deletions(-)
---
diff --git a/rsvg_internals/src/svg.rs b/rsvg_internals/src/svg.rs
index 8c60bd7e..728d5d79 100644
--- a/rsvg_internals/src/svg.rs
+++ b/rsvg_internals/src/svg.rs
@@ -6,7 +6,6 @@ use gio;
 use gobject_sys;
 
 use allowed_url::{AllowedUrl, Fragment};
-use css::CssStyles;
 use error::LoadingError;
 use handle::{self, LoadOptions, RsvgHandle};
 use node::RsvgNode;
@@ -29,8 +28,6 @@ pub struct Svg {
     // resources all over the place.  Eventually we'll be able to do this
     // once, at loading time, and keep this immutable.
     externs: RefCell<Resources>,
-
-    pub css_styles: CssStyles,
 }
 
 impl Svg {
@@ -38,14 +35,12 @@ impl Svg {
         handle: *mut RsvgHandle,
         tree: Tree,
         ids: HashMap<String, RsvgNode>,
-        css_styles: CssStyles,
     ) -> Svg {
         Svg {
             handle,
             tree,
             externs: RefCell::new(Resources::new()),
             ids,
-            css_styles,
         }
     }
 
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index 26f49b04..f21026de 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -130,7 +130,6 @@ impl XmlState {
             self.handle,
             self.tree.take().unwrap(),
             self.ids.take().unwrap(),
-            self.css_styles.take().unwrap(),
         )
     }
 


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