From c9d58fb7caf4ced82d9428c2cbc1ebe2c3d222d0 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 19 Dec 2024 16:19:08 -0800 Subject: [PATCH] dead code --- src/main.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7b51976..a658437 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,23 +192,6 @@ fn get_mapinfo(dom:&rbx_dom_weak::WeakDom) -> AResult<(String,String,String,rbx_ Err(anyhow::Error::msg("no stuff in map")) } -struct RobloxAssetId(u64); -struct RobloxAssetIdParseErr; -impl std::str::FromStr for RobloxAssetId { - type Err=RobloxAssetIdParseErr; - fn from_str(s: &str) -> Result{ - let regman=lazy_regex::regex!(r"(\d+)$"); - if let Some(captures) = regman.captures(s) { - if captures.len()==2{//captures[0] is all captures concatenated, and then each individual capture - if let Ok(id) = captures[0].parse::() { - return Ok(Self(id)); - } - } - } - Err(RobloxAssetIdParseErr) - } -} - enum Scan{ Passed, Blocked,