Cleaning up.

This commit is contained in:
Tom Alexander
2020-05-10 22:20:39 -04:00
parent 6261f7881c
commit 75ba35a422
2 changed files with 0 additions and 65 deletions

View File

@@ -54,19 +54,6 @@ impl<C: 'static + ContextElement> CastToAny for C {
}
}
// impl<C: 'static + ContextElement + PartialEq> CompareContextElement for C {
// fn to_any(&self) -> &dyn Any {
// self
// }
// fn equals(&self, other: &dyn ContextElement) -> bool {
// other
// .to_any()
// .downcast_ref::<Self>()
// .map_or(false, |a| self == a)
// }
// }
impl<'a, 'b> PartialEq<&'b dyn ContextElement> for &'a dyn ContextElement {
fn eq(&self, other: &&'b dyn ContextElement) -> bool {
self.equals(*other)