From c83a9c6739206454bee89f7bda4fbf72bbe96b28 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 13 Feb 2025 13:12:15 +0100 Subject: [PATCH] drop duplicated function --- src/constants.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 4e71334..0bb88cb 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -188,14 +188,6 @@ impl OathCodeDisplay { None } } - pub fn from_bytes(tlv: Tlv) -> Option { - if Into::::into(tlv.tag()) == (Tag::TruncatedResponse as u8) && tlv.value().len() == 5 { - let display = OathCodeDisplay::new(tlv.value()[..].try_into().unwrap()); - Some(display) - } else { - None - } - } pub fn new(bytes: &[u8; 5]) -> Self { Self {