Skip to content

Commit be6f1d3

Browse files
committed
Remove unused HasFloat trait.
1 parent 3370a3c commit be6f1d3

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

bindgen/ir/item.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ pub(crate) trait HasTypeParamInArray {
8585
fn has_type_param_in_array(&self, ctx: &BindgenContext) -> bool;
8686
}
8787

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-
9488
/// A trait for iterating over an item and its parents and up its ancestor chain
9589
/// up to (but not including) the implicit root module.
9690
pub(crate) trait ItemAncestors {
@@ -1200,29 +1194,6 @@ impl HasTypeParamInArray for Item {
12001194
}
12011195
}
12021196

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-
12261197
/// A set of items.
12271198
pub(crate) type ItemSet = BTreeSet<ItemId>;
12281199

0 commit comments

Comments
 (0)