Skip to content

Commit

Permalink
Remove unused function from esp-hal-procmacros (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham authored Apr 11, 2024
1 parent c73a2d9 commit f692548
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions esp-hal-procmacros/src/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,6 @@ pub(crate) fn check_attr_whitelist(
Ok(())
}

pub(crate) fn extract_cfgs(attrs: Vec<Attribute>) -> (Vec<Attribute>, Vec<Attribute>) {
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)
Expand Down

0 comments on commit f692548

Please sign in to comment.