Remove dead misc_init()

This commit is contained in:
Johannes Altmanninger
2025-10-22 22:19:20 +02:00
parent 3c4243fdd2
commit 71f0e75651
3 changed files with 1 additions and 7 deletions

View File

@@ -513,7 +513,6 @@ fn throwing_main() -> i32 {
features::set_from_string(opts.features.as_utfstr());
fish::env_dispatch::read_terminfo_database(EnvStack::globals());
proc_init();
fish::env::misc_init();
reader_init(true);
// Construct the root parser!

View File

@@ -842,7 +842,3 @@ pub fn env_init(paths: Option<&ConfigPaths>, do_uvars: bool, default_paths: bool
}
}
}
/// Various things we need to initialize at run-time that don't really fit any of the other init
/// routines.
pub fn misc_init() {}

View File

@@ -30,7 +30,7 @@
pub mod prelude {
use crate::common::{BUILD_DIR, ScopeGuard, ScopeGuarding};
use crate::env::{env_init, misc_init};
use crate::env::env_init;
use crate::parser::{CancelBehavior, Parser};
use crate::reader::{reader_deinit, reader_init};
use crate::signal::signal_reset_handlers;
@@ -104,7 +104,6 @@ pub fn test_init() -> impl ScopeGuarding<Target = ()> {
crate::threads::init();
proc_init();
env_init(None, true, false);
misc_init();
// Set default signal handlers, so we can ctrl-C out of this.
signal_reset_handlers();