Skip to content

Commit

Permalink
fix: remove noop trace_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 10, 2022
1 parent 9f43721 commit 0cd54c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/backtrace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ cfg_if::cfg_if! {
} else {
mod noop;
use self::noop::trace as trace_imp;
use self::noop::trace_thread as trace_thread_imp;
use self::noop::trace_thread_unsynchronized;
pub(crate) use self::noop::Frame as FrameImp;
}
}
5 changes: 0 additions & 5 deletions src/backtrace/noop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ use core::ffi::c_void;
#[inline(always)]
pub fn trace(_cb: &mut dyn FnMut(&super::Frame) -> bool) {}

#[inline(always)]
pub fn trace_thread(cb: &mut dyn FnMut(&super::Frame) -> bool, thread: *mut c_void) {}

pub fn trace_thread_unsynchronized<F: FnMut(&Frame) -> bool>(thread: *mut c_void, mut cb: F) {}

#[derive(Clone)]
pub struct Frame;

Expand Down

0 comments on commit 0cd54c5

Please sign in to comment.