From 663caa9ddf856c5e3a9612b1ac002c8d0646a3c2 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Sun, 28 Aug 2016 10:52:03 +0000 Subject: [PATCH] Remove inherent methods `Annotatable::attrs` and `Annotatable::fold_attrs`. --- src/libsyntax/ext/base.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 6ba3b92483f..43e190f5deb 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -60,13 +60,6 @@ fn map_attrs) -> Vec>(self, f: F) } impl Annotatable { - pub fn attrs(&self) -> &[ast::Attribute] { - HasAttrs::attrs(self) - } - pub fn fold_attrs(self, attrs: Vec) -> Annotatable { - self.map_attrs(|_| attrs) - } - pub fn expect_item(self) -> P { match self { Annotatable::Item(i) => i,