From 7248eda12891384db2058835dbd3322a2f2117ae Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 17 Feb 2026 20:49:16 +0100 Subject: [PATCH] initfs: Remove unused function --- initfs/src/types.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/initfs/src/types.rs b/initfs/src/types.rs index bf09476cb5..68cf46fe66 100644 --- a/initfs/src/types.rs +++ b/initfs/src/types.rs @@ -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)) }