diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs index 00ea3a9b06..2d4f68f5e0 100644 --- a/crates/ra_prof/src/lib.rs +++ b/crates/ra_prof/src/lib.rs @@ -113,21 +113,6 @@ pub fn profile(label: Label) -> Profiler { }) } -pub fn print_time(label: Label) -> impl Drop { - struct Guard { - label: Label, - start: Instant, - } - - impl Drop for Guard { - fn drop(&mut self) { - eprintln!("{}: {:?}", self.label, self.start.elapsed()) - } - } - - Guard { label, start: Instant::now() } -} - pub struct Profiler { label: Option