initfs: Remove unused function
This commit is contained in:
+1
-5
@@ -11,14 +11,10 @@ macro_rules! primitive(
|
||||
|
||||
impl $wrapper {
|
||||
#[inline]
|
||||
pub const fn get(&self) -> $primitive {
|
||||
pub const fn get(self) -> $primitive {
|
||||
<$primitive>::from_le_bytes(self.0)
|
||||
}
|
||||
#[inline]
|
||||
pub fn set(&mut self, primitive: $primitive) {
|
||||
*self = Self::new(primitive);
|
||||
}
|
||||
#[inline]
|
||||
pub const fn new(primitive: $primitive) -> Self {
|
||||
Self(<$primitive>::to_le_bytes(primitive))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user