about summary refs log tree commit diff
path: root/src/libstd/sync/mpsc/cache_aligned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sync/mpsc/cache_aligned.rs')
-rw-r--r--src/libstd/sync/mpsc/cache_aligned.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/libstd/sync/mpsc/cache_aligned.rs b/src/libstd/sync/mpsc/cache_aligned.rs
deleted file mode 100644
index b0842144328..00000000000
--- a/src/libstd/sync/mpsc/cache_aligned.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use crate::ops::{Deref, DerefMut};
-
-#[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
-#[repr(align(64))]
-pub(super) struct Aligner;
-
-#[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
-pub(super) struct CacheAligned<T>(pub T, pub Aligner);
-
-impl<T> Deref for CacheAligned<T> {
-    type Target = T;
-    fn deref(&self) -> &Self::Target {
-        &self.0
-    }
-}
-
-impl<T> DerefMut for CacheAligned<T> {
-    fn deref_mut(&mut self) -> &mut Self::Target {
-        &mut self.0
-    }
-}
-
-impl<T> CacheAligned<T> {
-    pub(super) fn new(t: T) -> Self {
-        CacheAligned(t, Aligner)
-    }
-}