summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-07-27 14:07:44 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-07-27 14:07:44 -0700
commit97205205904caf79ea5298538645886321c38708 (patch)
tree40066210488cbd33daa82a39f00214a96cce0a84
parent331862adaf29c3a73db4156fd346b7755123fa3e (diff)
Remove unused `HasVtable::Extra` associated type
This is a throwback from the old, ad-hoc computation before we used the fixpoint analysis.
-rw-r--r--src/ir/analysis/has_vtable.rs8
-rw-r--r--src/ir/item.rs8
2 files changed, 3 insertions, 13 deletions
diff --git a/src/ir/analysis/has_vtable.rs b/src/ir/analysis/has_vtable.rs
index 47c9ee15..a1573077 100644
--- a/src/ir/analysis/has_vtable.rs
+++ b/src/ir/analysis/has_vtable.rs
@@ -157,12 +157,6 @@ impl<'ctx, 'gen> From<HasVtableAnalysis<'ctx, 'gen>> for HashSet<ItemId> {
/// looking up the results of the HasVtableAnalysis's computations for a
/// specific thing.
pub trait HasVtable {
-
- /// Implementations can define this type to get access to any extra
- /// information required to determine whether they have vtable. If
- /// extra information is unneeded, then this should simply be the unit type.
- type Extra;
-
/// Return `true` if this thing has vtable, `false` otherwise.
- fn has_vtable(&self, ctx: &BindgenContext, extra: &Self::Extra) -> bool;
+ fn has_vtable(&self, ctx: &BindgenContext) -> bool;
}
diff --git a/src/ir/item.rs b/src/ir/item.rs
index b3a26bb7..96e7ae41 100644
--- a/src/ir/item.rs
+++ b/src/ir/item.rs
@@ -949,17 +949,13 @@ impl IsOpaque for Item {
}
impl HasVtable for ItemId {
- type Extra = ();
-
- fn has_vtable(&self, ctx: &BindgenContext, _: &()) -> bool {
+ fn has_vtable(&self, ctx: &BindgenContext) -> bool {
ctx.lookup_item_id_has_vtable(self)
}
}
impl HasVtable for Item {
- type Extra = ();
-
- fn has_vtable(&self, ctx: &BindgenContext, _: &()) -> bool {
+ fn has_vtable(&self, ctx: &BindgenContext) -> bool {
ctx.lookup_item_id_has_vtable(&self.id())
}
}