From 3865e3fa8dee8162ef16e9c75da80230721fcfd2 Mon Sep 17 00:00:00 2001 From: Yorick de Wid Date: Wed, 7 Feb 2024 22:03:11 +0100 Subject: [PATCH] Remove unused functions --- src/decode.rs | 54 --------------------------------------------------- 1 file changed, 54 deletions(-) diff --git a/src/decode.rs b/src/decode.rs index b8068cb..56f7fd6 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -272,60 +272,6 @@ pub fn spn899(value: u8) -> Option { } } -// TODO: Remove this. -pub fn spn959(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some((value as f32 * 0.25) as u8) - } else { - None - } -} - -// TODO: Remove this. -pub fn spn960(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some(value) - } else { - None - } -} - -// TODO: Remove this. -pub fn spn961(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some(value) - } else { - None - } -} - -// TODO: Remove this. -pub fn spn963(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some(value) - } else { - None - } -} - -// TODO: Remove this. -pub fn spn962(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some((value as f32 * 0.25) as u8) - } else { - None - } -} - -// TODO: Remove this. -pub fn spn964(value: u8) -> Option { - if value != PDU_NOT_AVAILABLE { - Some(value as u16 + 1985) - } else { - None - } -} - pub fn spn1601(value: u8) -> Option { if value != PDU_NOT_AVAILABLE { Some(value - 125)