From 38c45cbadc4726dd377f93901aff6a5247c50b34 Mon Sep 17 00:00:00 2001 From: thealmarty <“thealmartyblog@gmail.com”> Date: Mon, 15 Apr 2024 12:42:34 -0700 Subject: [PATCH] Remove to_u8. --- machine/src/core.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/machine/src/core.rs b/machine/src/core.rs index f57ecf6..35e378b 100644 --- a/machine/src/core.rs +++ b/machine/src/core.rs @@ -48,15 +48,6 @@ impl Word { } } -impl Word { - pub fn to_u8(self) -> u8 { - let result = self.0; - let byte = result[MEMORY_CELL_BYTES - 1]; - byte - } -} - - impl Into for Word { fn into(self) -> u32 { let mut result = 0u32;