@@ -157,9 +157,6 @@ fn get_abi(cc: CXCallingConv) -> abi::Abi {
157
157
fn conv_ptr_ty ( ctx : & mut ClangParserCtx , ty : & cx:: Type , cursor : & Cursor , layout : Layout ) -> il:: Type {
158
158
let is_const = ty. is_const ( ) ;
159
159
match ty. kind ( ) {
160
- CXTypeKind :: Void => {
161
- TPtr ( Box :: new ( TVoid ) , is_const, layout)
162
- }
163
160
CXTypeKind :: Unexposed |
164
161
CXTypeKind :: FunctionProto |
165
162
CXTypeKind :: FunctionNoProto => {
@@ -176,16 +173,6 @@ fn conv_ptr_ty(ctx: &mut ClangParserCtx, ty: &cx::Type, cursor: &Cursor, layout:
176
173
TPtr ( Box :: new ( TVoid ) , ty. is_const ( ) , layout)
177
174
}
178
175
}
179
- CXTypeKind :: Typedef => {
180
- let decl = ty. declaration ( ) ;
181
- let def_ty = decl. typedef_type ( ) ;
182
- if def_ty. kind ( ) == CXTypeKind :: FunctionProto ||
183
- def_ty. kind ( ) == CXTypeKind :: FunctionNoProto {
184
- TPtr ( Box :: new ( conv_ptr_ty ( ctx, & def_ty, cursor, layout) ) , is_const, layout)
185
- } else {
186
- TPtr ( Box :: new ( conv_ty ( ctx, ty, cursor) ) , is_const, layout)
187
- }
188
- }
189
176
_ => TPtr ( Box :: new ( conv_ty ( ctx, ty, cursor) ) , is_const, layout) ,
190
177
}
191
178
}
0 commit comments