[librsvg: 1/5] Remove unused functions
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/5] Remove unused functions
- Date: Sat, 24 Oct 2020 01:17:54 +0000 (UTC)
commit 8c5dd6561e54c2d1e59c2d88e48d47959f73489c
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Oct 23 19:04:22 2020 -0500
Remove unused functions
librsvg_crate/tests/standalone/utils.rs | 29 -----------------------------
1 file changed, 29 deletions(-)
---
diff --git a/librsvg_crate/tests/standalone/utils.rs b/librsvg_crate/tests/standalone/utils.rs
index f3b89c8a..30776189 100644
--- a/librsvg_crate/tests/standalone/utils.rs
+++ b/librsvg_crate/tests/standalone/utils.rs
@@ -90,35 +90,6 @@ pub fn output_dir() -> PathBuf {
path
}
-pub fn fixture_dir() -> PathBuf {
- let path = PathBuf::from(
- env::var_os("CARGO_MANIFEST_DIR")
- .expect(r#"CARGO_MANIFEST_DIR" is not set, please set it or run under "cargo test""#),
- )
- .join("tests")
- .join("fixtures");
-
- println!("looking for fixtures at {}", path.to_string_lossy());
-
- path
-}
-
-pub fn compare_to_file(
- output_surf: &SharedImageSurface,
- output_base_name: &str,
- reference_filename: &str,
-) {
- let reference_path = fixture_dir().join(reference_filename);
- let file = File::open(reference_path).unwrap();
-
- let mut reference_file = BufReader::new(file);
-
- let reference = cairo::ImageSurface::create_from_png(&mut reference_file).unwrap();
- let reference_surf = SharedImageSurface::wrap(reference, SurfaceType::SRgb).unwrap();
-
- compare_to_surface(output_surf, &reference_surf, output_base_name);
-}
-
pub fn compare_to_surface(
output_surf: &SharedImageSurface,
reference_surf: &SharedImageSurface,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]