[librsvg] librsvg_crate: remove unused functions
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] librsvg_crate: remove unused functions
- Date: Tue, 9 Apr 2019 16:44:39 +0000 (UTC)
commit 462e1f32a41996c48ef9648ef8bbf4357575ae53
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Apr 5 11:32:39 2019 -0600
librsvg_crate: remove unused functions
librsvg_crate/src/lib.rs | 17 -----------------
1 file changed, 17 deletions(-)
---
diff --git a/librsvg_crate/src/lib.rs b/librsvg_crate/src/lib.rs
index d728f49f..8308bf8d 100644
--- a/librsvg_crate/src/lib.rs
+++ b/librsvg_crate/src/lib.rs
@@ -332,23 +332,6 @@ impl<'a> CairoRenderer<'a> {
}
}
- #[cfg(test)]
- pub fn dimensions(&self) -> Result<(i32, i32), RenderingError> {
- self.handle
- .0
- .get_dimensions()
- .map(|dimensions| (dimensions.width, dimensions.height))
- }
-
- #[cfg(test)]
- pub fn render_cairo_sub(
- &self,
- cr: &cairo::Context,
- id: Option<&str>,
- ) -> Result<(), RenderingError> {
- self.handle.0.render_cairo_sub(cr, id)
- }
-
pub fn intrinsic_dimensions(&self) -> IntrinsicDimensions {
let d = self.handle.0.get_intrinsic_dimensions();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]