@@ -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 {
@@ -1203,29 +1197,6 @@ impl HasTypeParamInArray for Item {
1203
1197
}
1204
1198
}
1205
1199
1206
- impl < T > HasFloat for T
1207
- where
1208
- T : Copy + Into < ItemId > ,
1209
- {
1210
- fn has_float ( & self , ctx : & BindgenContext ) -> bool {
1211
- debug_assert ! (
1212
- ctx. in_codegen_phase( ) ,
1213
- "You're not supposed to call this yet"
1214
- ) ;
1215
- ctx. lookup_has_float ( * self )
1216
- }
1217
- }
1218
-
1219
- impl HasFloat for Item {
1220
- fn has_float ( & self , ctx : & BindgenContext ) -> bool {
1221
- debug_assert ! (
1222
- ctx. in_codegen_phase( ) ,
1223
- "You're not supposed to call this yet"
1224
- ) ;
1225
- ctx. lookup_has_float ( self . id ( ) )
1226
- }
1227
- }
1228
-
1229
1200
/// A set of items.
1230
1201
pub ( crate ) type ItemSet = BTreeSet < ItemId > ;
1231
1202
0 commit comments