From 76e2ba25bd419beedbbc15aec6b4c6aef4deffaf Mon Sep 17 00:00:00 2001 From: Michele d'Amico Date: Wed, 17 Jul 2019 02:40:33 +0200 Subject: #3665: Implemented (#3689) --- src/utils.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 1a4941aa72e..9adc9390111 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -638,26 +638,6 @@ pub(crate) fn unicode_str_width(s: &str) -> usize { s.width() } -pub(crate) fn get_skip_macro_names(attrs: &[ast::Attribute]) -> Vec { - let mut skip_macro_names = vec![]; - for attr in attrs { - // syntax::ast::Path is implemented partialEq - // but it is designed for segments.len() == 1 - if format!("{}", attr.path) != "rustfmt::skip::macros" { - continue; - } - - if let Some(list) = attr.meta_item_list() { - for nested_meta_item in list { - if let Some(name) = nested_meta_item.ident() { - skip_macro_names.push(name.to_string()); - } - } - } - } - skip_macro_names -} - #[cfg(test)] mod test { use super::*; -- cgit 1.4.1-3-g733a5