Skip to content

Commit a761c19

Browse files
committed
Remove unused HasFloat trait.
1 parent 8b1f971 commit a761c19

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 {
@@ -1203,29 +1197,6 @@ impl HasTypeParamInArray for Item {
12031197
}
12041198
}
12051199

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

0 commit comments

Comments
 (0)