[pypy-svn] r27200 - in pypy/dist/pypy/rpython: . lltypesystem

arigo at codespeak.net arigo at codespeak.net
Sun May 14 13:29:33 CEST 2006


Author: arigo
Date: Sun May 14 13:29:32 2006
New Revision: 27200

Modified:
   pypy/dist/pypy/rpython/lltypesystem/rclass.py
   pypy/dist/pypy/rpython/rclass.py
Log:
Kill unused code.


Modified: pypy/dist/pypy/rpython/lltypesystem/rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rclass.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rclass.py	Sun May 14 13:29:32 2006
@@ -8,8 +8,7 @@
                                 AbstractInstanceRepr,\
                                 MissingRTypeAttribute,\
                                 getclassrepr, getinstancerepr,\
-                                get_type_repr, rtype_new_instance,\
-                                instance_annotation_for_cls
+                                get_type_repr, rtype_new_instance
 from pypy.rpython.lltypesystem.lltype import \
      ForwardReference, GcForwardReference, \
      Ptr, Struct, GcStruct, malloc, \

Modified: pypy/dist/pypy/rpython/rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/rclass.py	(original)
+++ pypy/dist/pypy/rpython/rclass.py	Sun May 14 13:29:32 2006
@@ -193,10 +193,3 @@
 def rtype_new_instance(rtyper, classdef, llops, classcallhop=None):
     rinstance = getinstancerepr(rtyper, classdef)
     return rinstance.new_instance(llops, classcallhop)
-
-def instance_annotation_for_cls(rtyper, cls):
-    try:
-        classdef = rtyper.annotator.getuserclasses()[cls]
-    except KeyError:
-        raise TyperError("no classdef: %r" % (cls,))
-    return annmodel.SomeInstance(classdef)



More information about the Pypy-commit mailing list