@@ -53,12 +53,6 @@ pub trait AttrMetaMethods {
5353 fn value_str ( & self ) -> Option < InternedString > ;
5454 /// Gets a list of inner meta items from a list MetaItem type.
5555 fn meta_item_list < ' a > ( & ' a self ) -> Option < & ' a [ @MetaItem ] > ;
56-
57- /**
58- * If the meta item is a name-value type with a string value then returns
59- * a tuple containing the name and string value, otherwise `None`
60- */
61- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > ;
6256}
6357
6458impl AttrMetaMethods for Attribute {
@@ -76,9 +70,6 @@ impl AttrMetaMethods for Attribute {
7670 fn meta_item_list < ' a > ( & ' a self ) -> Option < & ' a [ @MetaItem ] > {
7771 self . node . value . meta_item_list ( )
7872 }
79- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
80- self . meta ( ) . name_str_pair ( )
81- }
8273}
8374
8475impl AttrMetaMethods for MetaItem {
@@ -108,10 +99,6 @@ impl AttrMetaMethods for MetaItem {
10899 _ => None
109100 }
110101 }
111-
112- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
113- self . value_str ( ) . map ( |s| ( self . name ( ) , s) )
114- }
115102}
116103
117104// Annoying, but required to get test_cfg to work
@@ -121,9 +108,6 @@ impl AttrMetaMethods for @MetaItem {
121108 fn meta_item_list < ' a > ( & ' a self ) -> Option < & ' a [ @MetaItem ] > {
122109 ( * * self ) . meta_item_list ( )
123110 }
124- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
125- ( * * self ) . name_str_pair ( )
126- }
127111}
128112
129113
0 commit comments