[librsvg/wip/rust-api] LoadOptions: remove the base_url option



commit 395398987bb57c779950897c56ac935606c999c7
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Feb 18 11:34:21 2019 -0600

    LoadOptions: remove the base_url option
    
    Instead, this is passed to the loading methods that need it.

 librsvg_crate/src/lib.rs | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/librsvg_crate/src/lib.rs b/librsvg_crate/src/lib.rs
index 39b95ace..280aadd0 100644
--- a/librsvg_crate/src/lib.rs
+++ b/librsvg_crate/src/lib.rs
@@ -41,7 +41,6 @@ pub use rsvg_internals::{LoadingError, RenderingError};
 pub struct LoadOptions {
     unlimited_size: bool,
     keep_image_data: bool,
-    base_url: Option<Url>,
 }
 
 impl LoadOptions {
@@ -49,15 +48,9 @@ impl LoadOptions {
         LoadOptions {
             unlimited_size: false,
             keep_image_data: false,
-            base_url: None,
         }
     }
 
-    pub fn base_url(mut self, url: Option<&Url>) -> Self {
-        self.base_url = url.map(|u| u.clone());
-        self
-    }
-
     pub fn unlimited_size(mut self, unlimited: bool) -> Self {
         self.unlimited_size = unlimited;
         self


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