From 4d162335f98ff3d9fc4010aecc7820fc78f97286 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 29 Nov 2017 14:10:05 -0600 Subject: [PATCH] Remove __eq__ and __hash__ on Element --- openmc/element.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/openmc/element.py b/openmc/element.py index fc019a5d3..48c4e6643 100644 --- a/openmc/element.py +++ b/openmc/element.py @@ -38,29 +38,6 @@ class Element(object): # Set class attributes self.name = name - def __eq__(self, other): - if isinstance(other, Element): - if self.name != other.name: - return False - else: - return True - elif isinstance(other, string_types) and other == self.name: - return True - else: - return False - - def __ne__(self, other): - return not self == other - - def __gt__(self, other): - return repr(self) > repr(other) - - def __lt__(self, other): - return not self > other - - def __hash__(self): - return hash(repr(self)) - def __repr__(self): string = 'Element - {0}\n'.format(self._name) if self.scattering is not None: