Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
coolreader18 authored and sebcrozet committed Sep 19, 2020
1 parent 3b45cb8 commit 024d577
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ fn duration_from_f64(millis: f64) -> Duration {
+ Duration::from_nanos((millis.fract() * 1.0e6) as u64)
}

fn duration_to_f64(d: Duration) -> f64 {
d.as_secs() as f64 * 1.0e3 + f64::from(d.subsec_nanos()) * 1.0e-6
}

#[cfg(all(feature = "stdweb", not(feature = "wasm-bindgen")))]
#[allow(unused_results)] // Needed because the js macro triggers it.
pub fn now() -> f64 {
Expand Down

0 comments on commit 024d577

Please sign in to comment.