From 845c3ec91f1beff559af8b5da19b5fc3fa332abc Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Mon, 6 May 2024 14:14:25 -0700 Subject: [PATCH] refactor: Remove unused `atomic` module --- src/types.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/types.rs b/src/types.rs index 82f9125f..bba8241a 100644 --- a/src/types.rs +++ b/src/types.rs @@ -14,38 +14,6 @@ pub(crate) mod ffi { pub const S_IFREG: u32 = 0o0100000; } -#[cfg(any( - all(target_arch = "arm", target_pointer_width = "32"), - target_arch = "mips", - target_arch = "powerpc" -))] -mod atomic { - use crossbeam_utils::sync::ShardedLock; - pub use std::sync::atomic::Ordering; - - #[derive(Debug, Default)] - pub struct AtomicU64 { - value: ShardedLock, - } - - impl AtomicU64 { - pub fn new(v: u64) -> Self { - Self { - value: ShardedLock::new(v), - } - } - pub fn get_mut(&mut self) -> &mut u64 { - self.value.get_mut().unwrap() - } - pub fn load(&self, _: Ordering) -> u64 { - *self.value.read().unwrap() - } - pub fn store(&self, value: u64, _: Ordering) { - *self.value.write().unwrap() = value; - } - } -} - use crate::extra_fields::ExtraField; use crate::result::DateTimeRangeError; use crate::types::ffi::S_IFDIR;