diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 31dd07f463c..18a91fe465e 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -271,21 +271,6 @@ pub fn sort_meta_items(items: &[Gc]) -> Vec> { }).collect() } -/** - * From a list of crate attributes get only the meta_items that affect crate - * linkage - */ -pub fn find_linkage_metas(attrs: &[Attribute]) -> Vec> { - let mut result = Vec::new(); - for attr in attrs.iter().filter(|at| at.check_name("link")) { - match attr.meta().node { - MetaList(_, ref items) => result.push_all(items.as_slice()), - _ => () - } - } - result -} - pub fn find_crateid(attrs: &[Attribute]) -> Option { match first_attr_value_str_by_name(attrs, "crate_id") { None => None,