From 57e96e791e21a37c6cca3b96f3a9d9ab27f75db1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 5 Dec 2023 16:55:32 +0100 Subject: [PATCH] Remove some deprecated code rust-analyzer completions are good enough so we don't need these. --- fish-rust/src/common.rs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/fish-rust/src/common.rs b/fish-rust/src/common.rs index 5240f48e6..73e76a0c8 100644 --- a/fish-rust/src/common.rs +++ b/fish-rust/src/common.rs @@ -1614,31 +1614,6 @@ pub fn timef() -> Timepoint { } } -#[deprecated(note = "Use threads::is_main_thread() instead")] -pub fn is_main_thread() -> bool { - crate::threads::is_main_thread() -} - -/// Call the following function early in main to set the main thread. This is our replacement for -/// pthread_main_np(). -#[deprecated(note = "This function is no longer called manually!")] -pub fn set_main_thread() { - eprintln!("set_main_thread() is removed in favor of `main_thread_id()` and co. in threads.rs!") -} - -#[deprecated(note = "Use threads::configure_thread_assertions_for_testing() instead")] -pub fn configure_thread_assertions_for_testing() { - crate::threads::configure_thread_assertions_for_testing(); -} - -#[deprecated(note = "This should no longer be called manually")] -pub fn setup_fork_guards() {} - -#[deprecated(note = "Use threads::is_forked_child() instead")] -pub fn is_forked_child() -> bool { - crate::threads::is_forked_child() -} - /// Be able to restore the term's foreground process group. /// This is set during startup and not modified after. static INITIAL_FG_PROCESS_GROUP: AtomicI32 = AtomicI32::new(-1); // HACK, should be pid_t