Remove tags
diff --git a/src/header.rs b/src/header.rs
index a559e48..82fcf7c 100644
--- a/src/header.rs
+++ b/src/header.rs
@@ -1,4 +1,3 @@
-use core::alloc::Layout;
use core::cell::UnsafeCell;
use core::fmt;
use core::sync::atomic::{AtomicUsize, Ordering};
@@ -6,7 +5,7 @@
use crate::raw::TaskVTable;
use crate::state::*;
-use crate::utils::{abort_on_panic, extend};
+use crate::utils::abort_on_panic;
/// The header of a task.
///
@@ -158,15 +157,6 @@
abort_on_panic(|| w.wake());
}
}
-
- /// Returns the offset at which the tag of type `T` is stored.
- #[inline]
- pub(crate) fn offset_tag<T>() -> usize {
- let layout_header = Layout::new::<Header>();
- let layout_t = Layout::new::<T>();
- let (_, offset_t) = extend(layout_header, layout_t);
- offset_t
- }
}
impl fmt::Debug for Header {