diff options
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index c8ca4e006b4..3ad8f977869 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -32,7 +32,6 @@ use dom::virtualmethods::VirtualMethods; use std::ascii::AsciiExt; use std::borrow::ToOwned; use std::default::Default; -use std::intrinsics; use std::rc::Rc; use string_cache::Atom; use style::element_state::*; @@ -488,25 +487,3 @@ impl VirtualMethods for HTMLElement { self.update_sequentially_focusable_status(); } } - -impl PartialEq for HTMLElementTypeId { - #[inline] - #[allow(unsafe_code)] - fn eq(&self, other: &HTMLElementTypeId) -> bool { - match (*self, *other) { - (HTMLElementTypeId::HTMLMediaElement(this_type), - HTMLElementTypeId::HTMLMediaElement(other_type)) => { - this_type == other_type - } - (HTMLElementTypeId::HTMLTableCellElement(this_type), - HTMLElementTypeId::HTMLTableCellElement(other_type)) => { - this_type == other_type - } - (_, _) => { - unsafe { - intrinsics::discriminant_value(self) == intrinsics::discriminant_value(other) - } - } - } - } -} |