[pypy-svn] r23282 - pypy/dist/pypy/rpython

pedronis at codespeak.net pedronis at codespeak.net
Mon Feb 13 15:59:30 CET 2006


Author: pedronis
Date: Mon Feb 13 15:59:27 2006
New Revision: 23282

Modified:
   pypy/dist/pypy/rpython/rlist.py
Log:
oops (this was a failed experiment)



Modified: pypy/dist/pypy/rpython/rlist.py
==============================================================================
--- pypy/dist/pypy/rpython/rlist.py	(original)
+++ pypy/dist/pypy/rpython/rlist.py	Mon Feb 13 15:59:27 2006
@@ -207,19 +207,6 @@
         return 1 # bad but not used alone
 
 
-def list_builder(rtyper, list_repr):
-    ITEM = list_repr.item_repr.lowleveltype
-    if rtyper is None: # only for testing!
-        return ListBuilder(list_repr.__class__, ITEM)
-    key = list_repr.__class__, ITEM
-    try:
-        return rtyper._list_builders[key]
-    except KeyError:
-        builder = ListBuilder(list_repr.__class__, ITEM)
-        rtyper._list_builders[key] = builder
-        return builder
-
-
 class ListRepr(BaseListRepr):
 
     def _setup_repr(self):



More information about the Pypy-commit mailing list