[pypy-svn] r10260 - pypy/dist/pypy/translator
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Apr 2 20:44:59 CEST 2005
Author: cfbolz
Date: Sat Apr 2 20:44:59 2005
New Revision: 10260
Modified:
pypy/dist/pypy/translator/unsimplify.py
Log:
Oops. I really want to know what I did here.
Modified: pypy/dist/pypy/translator/unsimplify.py
==============================================================================
--- pypy/dist/pypy/translator/unsimplify.py (original)
+++ pypy/dist/pypy/translator/unsimplify.py Sat Apr 2 20:44:59 2005
@@ -35,16 +35,6 @@
insert_empty_block(translator, link)
traverse(visit, graph)
-def uniqueitems(lst):
- "Returns a list with duplicate elements removed."
- result = []
- seen = {}
- for item in lst:
- if item not in seen:
- result.append(item)
- seen[item] = True
- return result
-
def remove_double_links(translator, graph):
"""This can be useful for code generators: it ensures that no block has
more than one incoming links from one and the same other block. It allows
More information about the Pypy-commit
mailing list