mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Remove dead misc_init()
This commit is contained in:
@@ -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!
|
||||
|
||||
4
src/env/environment.rs
vendored
4
src/env/environment.rs
vendored
@@ -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() {}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user