From e7df0ad2fb48166937fdd061e1ae559c72a81990 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 29 Sep 2020 21:13:58 +0200 Subject: Remove periodic gc stub --- crates/ide_db/src/wasm_shims.rs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 crates/ide_db/src/wasm_shims.rs (limited to 'crates/ide_db/src/wasm_shims.rs') diff --git a/crates/ide_db/src/wasm_shims.rs b/crates/ide_db/src/wasm_shims.rs deleted file mode 100644 index 7af9f9d9b..000000000 --- a/crates/ide_db/src/wasm_shims.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! A version of `std::time::Instant` that doesn't panic in WASM. - -#[cfg(not(feature = "wasm"))] -pub use std::time::Instant; - -#[cfg(feature = "wasm")] -#[derive(Clone, Copy, Debug)] -pub struct Instant; - -#[cfg(feature = "wasm")] -impl Instant { - pub fn now() -> Self { - Self - } - - pub fn elapsed(&self) -> std::time::Duration { - std::time::Duration::new(0, 0) - } -} -- cgit v1.2.3