From 7dad1fcbe5ac3a9ff5bda350384e093313a5ba31 Mon Sep 17 00:00:00 2001 From: benSepanski Date: Tue, 23 Jun 2020 14:26:17 -0500 Subject: [PATCH] Removed unused/unsafe __eq__/__hash__ from handlers --- meshmode/interop/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/meshmode/interop/__init__.py b/meshmode/interop/__init__.py index 1421458c..2c1bf072 100644 --- a/meshmode/interop/__init__.py +++ b/meshmode/interop/__init__.py @@ -46,17 +46,6 @@ class ExternalDataHandler: def __init__(self, data): self.data = data - def __hash__(self): - return hash((type(self), self.data)) - - def __eq__(self, other): - return isinstance(other, type(self)) and \ - isinstance(self, type(other)) and \ - self.data == other.data - - def __neq__(self, other): - return not self.__eq__(other) - # }}} -- GitLab