[librsvg: 6/11] Remove unused conversion




commit d70d7c2c2003cbe154e06add85d63753dc8508e8
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Aug 9 12:43:25 2022 -0500

    Remove unused conversion
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/727>

 src/c_api/dpi.rs | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/c_api/dpi.rs b/src/c_api/dpi.rs
index 802829471..6dc408ce7 100644
--- a/src/c_api/dpi.rs
+++ b/src/c_api/dpi.rs
@@ -45,12 +45,6 @@ impl Dpi {
     }
 }
 
-impl From<Dpi> for crate::dpi::Dpi {
-    fn from(dpi: Dpi) -> crate::dpi::Dpi {
-        crate::dpi::Dpi::new(dpi.x(), dpi.y())
-    }
-}
-
 #[no_mangle]
 pub unsafe extern "C" fn rsvg_set_default_dpi_x_y(dpi_x: libc::c_double, dpi_y: libc::c_double) {
     if dpi_x <= 0.0 {


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