Skip to content

Commit 8ab875c

Browse files
authored
fix: remove obsolete code (#364)
1 parent a651b64 commit 8ab875c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

super_native_extensions/rust/src/context.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@ impl Context {
9898
Err(_) => CURRENT_CONTEXT_FALLBACK.with(|c| c.borrow().as_ref().map(|c| c.clone())),
9999
}
100100
}
101-
102-
#[cfg(feature = "mock")]
103-
/// Helper function for unit tests. Will create temporary context,
104-
/// run the future in run loop and wait until completed.
105-
pub fn run_test(future: impl futures::Future + 'static) {
106-
let context = Context::new();
107-
Context::get().run_loop().spawn(async {
108-
future.await;
109-
Context::get().run_loop().stop();
110-
});
111-
context.run_loop().run();
112-
}
113101
}
114102

115103
thread_local! {

0 commit comments

Comments
 (0)