[librsvg: 6/21] Inline set_transform into its only caller




commit 0457d507e8b6295dd3e4086da1124d3edb01fddd
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Aug 18 19:50:05 2021 -0500

    Inline set_transform into its only caller
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/576>

 src/properties.rs | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/properties.rs b/src/properties.rs
index b5fcc7e9..7f8878e2 100644
--- a/src/properties.rs
+++ b/src/properties.rs
@@ -447,12 +447,6 @@ make_properties! {
 }
 
 impl SpecifiedValues {
-    // TODO for madds: this function will go away; it's just a setter
-    // used by ElementInner::set_transform_attribute(), which in turn will go away.
-    pub fn set_transform(&mut self, transform: Transform) {
-        self.transform = transform;
-    }
-
     fn property_index(&self, id: PropertyId) -> Option<usize> {
         let v = self.indices[id.as_usize()];
 
@@ -756,7 +750,7 @@ impl SpecifiedValues {
                     // a better way to distinguish attributes whose values have different
                     // grammars than properties.
                     let transform = Transform::parse_str(value).unwrap_or_else(|_| Transform::default());
-                    self.set_transform(transform);
+                    self.transform = transform;
                 }
 
                 expanded_name!(xml "lang") => {


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