@@ -85,12 +85,6 @@ pub(crate) trait HasTypeParamInArray {
85
85
fn has_type_param_in_array ( & self , ctx : & BindgenContext ) -> bool ;
86
86
}
87
87
88
- /// A trait for determining if some IR thing has float or not.
89
- pub ( crate ) trait HasFloat {
90
- /// Returns `true` if the thing has float, and `false` otherwise.
91
- fn has_float ( & self , ctx : & BindgenContext ) -> bool ;
92
- }
93
-
94
88
/// A trait for iterating over an item and its parents and up its ancestor chain
95
89
/// up to (but not including) the implicit root module.
96
90
pub ( crate ) trait ItemAncestors {
@@ -1200,29 +1194,6 @@ impl HasTypeParamInArray for Item {
1200
1194
}
1201
1195
}
1202
1196
1203
- impl < T > HasFloat for T
1204
- where
1205
- T : Copy + Into < ItemId > ,
1206
- {
1207
- fn has_float ( & self , ctx : & BindgenContext ) -> bool {
1208
- debug_assert ! (
1209
- ctx. in_codegen_phase( ) ,
1210
- "You're not supposed to call this yet"
1211
- ) ;
1212
- ctx. lookup_has_float ( * self )
1213
- }
1214
- }
1215
-
1216
- impl HasFloat for Item {
1217
- fn has_float ( & self , ctx : & BindgenContext ) -> bool {
1218
- debug_assert ! (
1219
- ctx. in_codegen_phase( ) ,
1220
- "You're not supposed to call this yet"
1221
- ) ;
1222
- ctx. lookup_has_float ( self . id ( ) )
1223
- }
1224
- }
1225
-
1226
1197
/// A set of items.
1227
1198
pub ( crate ) type ItemSet = BTreeSet < ItemId > ;
1228
1199
0 commit comments