@@ -57,11 +57,6 @@ impl Builder {
57
57
self . clang_arg ( header)
58
58
}
59
59
60
- pub fn match_pat < T : Into < String > > ( mut self , arg : T ) -> Builder {
61
- self . options . match_pat . insert ( arg. into ( ) ) ;
62
- self
63
- }
64
-
65
60
pub fn hide_type < T : Into < String > > ( mut self , arg : T ) -> Builder {
66
61
self . options . hidden_types . insert ( arg. into ( ) ) ;
67
62
self
@@ -112,11 +107,6 @@ impl Builder {
112
107
self
113
108
}
114
109
115
- pub fn dtor_attr < T : Into < String > > ( mut self , attr : T ) -> Builder {
116
- self . options . dtor_attrs . push ( attr. into ( ) ) ;
117
- self
118
- }
119
-
120
110
pub fn forbid_unknown_types ( mut self ) -> Builder {
121
111
self . options . fail_on_unknown_type = true ;
122
112
self
@@ -159,7 +149,6 @@ impl Builder {
159
149
/// Deprecated - use a `Builder` instead
160
150
#[ derive( Debug ) ]
161
151
pub struct BindgenOptions {
162
- pub match_pat : HashSet < String > ,
163
152
pub hidden_types : HashSet < String > ,
164
153
pub opaque_types : HashSet < String > ,
165
154
pub whitelisted_types : RegexSet ,
@@ -186,15 +175,12 @@ pub struct BindgenOptions {
186
175
pub msvc_mangling : bool ,
187
176
pub override_enum_ty : String ,
188
177
pub raw_lines : Vec < String > ,
189
- /// Attributes for a type with destructor
190
- pub dtor_attrs : Vec < String > ,
191
178
pub clang_args : Vec < String > ,
192
179
}
193
180
194
181
impl Default for BindgenOptions {
195
182
fn default ( ) -> BindgenOptions {
196
183
BindgenOptions {
197
- match_pat : Default :: default ( ) ,
198
184
hidden_types : Default :: default ( ) ,
199
185
opaque_types : Default :: default ( ) ,
200
186
whitelisted_types : Default :: default ( ) ,
@@ -217,7 +203,6 @@ impl Default for BindgenOptions {
217
203
namespaced_constants : true ,
218
204
msvc_mangling : false ,
219
205
raw_lines : vec ! [ ] ,
220
- dtor_attrs : vec ! [ ] ,
221
206
clang_args : vec ! [ ] ,
222
207
}
223
208
}
0 commit comments