mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 08:41:27 +08:00
Remove unneeded second UVARS global
This was apparently never used
This commit is contained in:
parent
263197dcb7
commit
76a80a0678
9
src/env/environment.rs
vendored
9
src/env/environment.rs
vendored
|
@ -7,7 +7,7 @@ use crate::abbrs::{abbrs_get_set, Abbreviation, Position};
|
||||||
use crate::common::{str2wcstring, unescape_string, wcs2zstring, UnescapeStringStyle};
|
use crate::common::{str2wcstring, unescape_string, wcs2zstring, UnescapeStringStyle};
|
||||||
use crate::env::{EnvMode, EnvVar, Statuses};
|
use crate::env::{EnvMode, EnvVar, Statuses};
|
||||||
use crate::env_dispatch::{env_dispatch_init, env_dispatch_var_change};
|
use crate::env_dispatch::{env_dispatch_init, env_dispatch_var_change};
|
||||||
use crate::env_universal_common::{CallbackDataList, EnvUniversal};
|
use crate::env_universal_common::CallbackDataList;
|
||||||
use crate::event::Event;
|
use crate::event::Event;
|
||||||
use crate::flog::FLOG;
|
use crate::flog::FLOG;
|
||||||
use crate::global_safety::RelaxedAtomicBool;
|
use crate::global_safety::RelaxedAtomicBool;
|
||||||
|
@ -36,12 +36,7 @@ use std::io::Write;
|
||||||
use std::mem::MaybeUninit;
|
use std::mem::MaybeUninit;
|
||||||
use std::os::unix::prelude::*;
|
use std::os::unix::prelude::*;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::Arc;
|
||||||
|
|
||||||
// Universal variables instance.
|
|
||||||
lazy_static! {
|
|
||||||
static ref UVARS: Mutex<EnvUniversal> = Mutex::new(EnvUniversal::new());
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Set when a universal variable has been modified but not yet been written to disk via sync().
|
/// Set when a universal variable has been modified but not yet been written to disk via sync().
|
||||||
static UVARS_LOCALLY_MODIFIED: RelaxedAtomicBool = RelaxedAtomicBool::new(false);
|
static UVARS_LOCALLY_MODIFIED: RelaxedAtomicBool = RelaxedAtomicBool::new(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user