Author: Manuel Jacob
Branch: kill-multimethod
Changeset: r69403:017ee17ccbf2
Date: 2014-02-25 06:09 +0100
http://bitbucket.org/pypy/pypy/changeset/017ee17ccbf2/

Log:    Kill registerimplementation.

diff --git a/pypy/objspace/std/model.py b/pypy/objspace/std/model.py
--- a/pypy/objspace/std/model.py
+++ b/pypy/objspace/std/model.py
@@ -7,12 +7,6 @@
 import pypy.interpreter.pycode
 import pypy.interpreter.special
 
-_registered_implementations = set()
-def registerimplementation(implcls):
-    """Hint to objspace.std.model to register the implementation class."""
-    assert issubclass(implcls, W_Object)
-    _registered_implementations.add(implcls)
-
 option_to_typename = {
     "withsmalllong"  : ["smalllongobject.W_SmallLongObject"],
     "withstrbuf"     : ["strbufobject.W_StringBufferObject"],
@@ -110,14 +104,6 @@
                     else:
                         self.imported_but_not_registered[implcls] = True
 
-        # check if we missed implementations
-        for implcls in _registered_implementations:
-            if hasattr(implcls, 'register'):
-                implcls.register(self.typeorder)
-            assert (implcls in self.typeorder or
-                    implcls in self.imported_but_not_registered), (
-                "please add %r in StdTypeModel.typeorder" % (implcls,))
-
 
         for type in self.typeorder:
             self.typeorder[type].append((type, None))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to