diff --git a/crates/util/src/acreplace.rs b/crates/util/src/acreplace.rs deleted file mode 100644 index 2c74967..0000000 --- a/crates/util/src/acreplace.rs +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MPL-2.0 - -use aho_corasick::{AhoCorasick, AhoCorasickBuilder, MatchKind, StartKind}; -use aneri_core::ByondSlotKey; -use meowtonin::{ByondResult, ByondValue}; -use once_cell::sync::Lazy; -use parking_lot::RwLock; -use slotmap::SlotMap; - -#[cfg_attr(target_pointer_width = "32", repr(align(64)))] -#[cfg_attr(target_pointer_width = "64", repr(align(128)))] -struct Replacements { - automaton: AhoCorasick, - replacements: Vec, -} - -static INSTANCES: Lazy>> = Lazy::new(RwLock::default); - -pub(crate) fn free_instances() { - *INSTANCES.write() = SlotMap::with_key(); -} - -#[byond_fn] -pub fn acreplace_new(mut src: ByondValue) -> ByondResult<()> { - INSTANCES.write().insert(todo!()).save(&mut src) -} - -#[byond_fn] -pub fn acreplace_del(src: ByondSlotKey) -> bool { - INSTANCES.write().remove(src).is_some() -} diff --git a/crates/util/src/lib.rs b/crates/util/src/lib.rs index 6829fa8..e8d3891 100644 --- a/crates/util/src/lib.rs +++ b/crates/util/src/lib.rs @@ -14,6 +14,4 @@ pub mod string; pub mod toml; pub mod uuid; -pub fn cleanup() { - //acreplace::free_instances(); -} +pub fn cleanup() {}