Remove unneeded second UVARS global

This was apparently never used
This commit is contained in:
Fabian Boehm 2024-02-01 17:35:44 +01:00
parent 263197dcb7
commit 76a80a0678

View File

@ -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);