aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/wasm_shims.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-09-29 20:13:58 +0100
committerAleksey Kladov <[email protected]>2020-09-29 20:22:48 +0100
commite7df0ad2fb48166937fdd061e1ae559c72a81990 (patch)
treec5a634e9836978c0fbb679c2529eea518add1196 /crates/ide_db/src/wasm_shims.rs
parent7283783b98ed61ee4f94961b81ad06e2344098d2 (diff)
Remove periodic gc stub
Diffstat (limited to 'crates/ide_db/src/wasm_shims.rs')
-rw-r--r--crates/ide_db/src/wasm_shims.rs19
1 files changed, 0 insertions, 19 deletions
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 @@
1//! A version of `std::time::Instant` that doesn't panic in WASM.
2
3#[cfg(not(feature = "wasm"))]
4pub use std::time::Instant;
5
6#[cfg(feature = "wasm")]
7#[derive(Clone, Copy, Debug)]
8pub struct Instant;
9
10#[cfg(feature = "wasm")]
11impl Instant {
12 pub fn now() -> Self {
13 Self
14 }
15
16 pub fn elapsed(&self) -> std::time::Duration {
17 std::time::Duration::new(0, 0)
18 }
19}