You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-v_frame/0001-remove-unused-hawktrac...

53 lines
1.4 KiB

From e106ded8e5e29ee464bddc6a321fe67a8e5884c1 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 8 Aug 2022 20:15:48 +0200
Subject: [PATCH] remove unused hawktracer usage
---
src/lib.rs | 8 +-------
src/plane.rs | 2 --
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index 298dc01..b4bc59a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,13 +23,7 @@ mod serialize {
}
mod wasm_bindgen {
- cfg_if::cfg_if! {
- if #[cfg(feature="wasm")] {
- pub use wasm_bindgen::prelude::*;
- } else {
- pub use noop_proc_macro::wasm_bindgen;
- }
- }
+ pub use noop_proc_macro::wasm_bindgen;
}
pub mod prelude {
diff --git a/src/plane.rs b/src/plane.rs
index 7723d89..a09a708 100644
--- a/src/plane.rs
+++ b/src/plane.rs
@@ -10,7 +10,6 @@
use rayon::current_num_threads;
use rayon::iter::ParallelIterator;
use rayon::prelude::*;
-use rust_hawktracer::*;
use std::cmp;
use std::marker::PhantomData;
use std::mem;
@@ -559,7 +558,6 @@ impl<T: Pixel> Plane<T> {
/// Downscales the source plane by a factor of `scale`, writing the result to `in_plane` (not padded)
///
/// `in_plane`'s width and height must be sufficient for `scale`.
- #[hawktracer(downscale)]
pub fn downscale_in_place(&self, scale: usize, in_plane: &mut Plane<T>) {
let src = self;
let box_pixels = scale * scale;
--
2.37.1