From f6925480f2ad2c4bfea8c456ea8d58f2a719900c Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Thu, 11 Apr 2024 09:29:29 +0000 Subject: [PATCH] Remove unused function from `esp-hal-procmacros` (#1421) --- esp-hal-procmacros/src/interrupt.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/esp-hal-procmacros/src/interrupt.rs b/esp-hal-procmacros/src/interrupt.rs index aef0a966c..385dbb3c0 100644 --- a/esp-hal-procmacros/src/interrupt.rs +++ b/esp-hal-procmacros/src/interrupt.rs @@ -41,21 +41,6 @@ pub(crate) fn check_attr_whitelist( Ok(()) } -pub(crate) fn extract_cfgs(attrs: Vec) -> (Vec, Vec) { - let mut cfgs = vec![]; - let mut not_cfgs = vec![]; - - for attr in attrs { - if eq(&attr, "cfg") { - cfgs.push(attr); - } else { - not_cfgs.push(attr); - } - } - - (cfgs, not_cfgs) -} - /// Returns `true` if `attr.path` matches `name` fn eq(attr: &Attribute, name: &str) -> bool { attr.style == AttrStyle::Outer && attr.path().is_ident(name)