[pypy-commit] pypy jvm-improvements: Remove unncessary __eq__ from OOInstanceRepr
benol
noreply at buildbot.pypy.org
Wed Jun 6 23:54:58 CEST 2012
Author: Michal Bendowski <michal at bendowski.pl>
Branch: jvm-improvements
Changeset: r55450:52ae99714cf8
Date: 2012-06-06 23:10 +0200
http://bitbucket.org/pypy/pypy/changeset/52ae99714cf8/
Log: Remove unncessary __eq__ from OOInstanceRepr
diff --git a/pypy/rpython/ootypesystem/rootype.py b/pypy/rpython/ootypesystem/rootype.py
--- a/pypy/rpython/ootypesystem/rootype.py
+++ b/pypy/rpython/ootypesystem/rootype.py
@@ -58,12 +58,6 @@
def __init__(self, ootype):
self.lowleveltype = ootype
- def __eq__(self, other):
- return self.lowleveltype == other.lowleveltype
-
- def __ne__(self, other):
- return not self.__eq__(other)
-
def rtype_getattr(self, hop):
attr = hop.args_s[1].const
s_inst = hop.args_s[0]
More information about the pypy-commit
mailing list