@@ -53,12 +53,6 @@ pub trait AttrMetaMethods {
53
53
fn value_str ( & self ) -> Option < InternedString > ;
54
54
/// Gets a list of inner meta items from a list MetaItem type.
55
55
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 ) > ;
62
56
}
63
57
64
58
impl AttrMetaMethods for Attribute {
@@ -76,9 +70,6 @@ impl AttrMetaMethods for Attribute {
76
70
fn meta_item_list < ' a > ( & ' a self ) -> Option < & ' a [ @MetaItem ] > {
77
71
self . node . value . meta_item_list ( )
78
72
}
79
- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
80
- self . meta ( ) . name_str_pair ( )
81
- }
82
73
}
83
74
84
75
impl AttrMetaMethods for MetaItem {
@@ -108,10 +99,6 @@ impl AttrMetaMethods for MetaItem {
108
99
_ => None
109
100
}
110
101
}
111
-
112
- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
113
- self . value_str ( ) . map ( |s| ( self . name ( ) , s) )
114
- }
115
102
}
116
103
117
104
// Annoying, but required to get test_cfg to work
@@ -121,9 +108,6 @@ impl AttrMetaMethods for @MetaItem {
121
108
fn meta_item_list < ' a > ( & ' a self ) -> Option < & ' a [ @MetaItem ] > {
122
109
( * * self ) . meta_item_list ( )
123
110
}
124
- fn name_str_pair ( & self ) -> Option < ( InternedString , InternedString ) > {
125
- ( * * self ) . name_str_pair ( )
126
- }
127
111
}
128
112
129
113
0 commit comments