[pypy-commit] pypy translation-cleanup: Kill dead function: rtype_builtin__import__

rlamy noreply at buildbot.pypy.org
Thu Aug 30 18:38:30 CEST 2012


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: translation-cleanup
Changeset: r57009:879f6923160d
Date: 2012-08-23 01:56 +0100
http://bitbucket.org/pypy/pypy/changeset/879f6923160d/

Log:	Kill dead function: rtype_builtin__import__

diff --git a/pypy/rpython/lltypesystem/rbuiltin.py b/pypy/rpython/lltypesystem/rbuiltin.py
--- a/pypy/rpython/lltypesystem/rbuiltin.py
+++ b/pypy/rpython/lltypesystem/rbuiltin.py
@@ -16,7 +16,7 @@
         v_obj, v_typ = hop.inputargs(pyobj_repr, pyobj_repr)
         c = hop.inputconst(pyobj_repr, isinstance)
         v = hop.genop('simple_call', [c, v_obj, v_typ], resulttype = pyobj_repr)
-        return hop.llops.convertvar(v, pyobj_repr, bool_repr)        
+        return hop.llops.convertvar(v, pyobj_repr, bool_repr)
 
     if hop.args_s[1].is_constant() and hop.args_s[1].const == list:
         if hop.args_s[0].knowntype != list:
@@ -58,17 +58,10 @@
         return hop.llops.convertvar(v, pyobj_repr, bool_repr)
     raise TyperError("hasattr is only suported on a constant or on PyObject")
 
-def rtype_builtin___import__(hop):
-    xxx    # should not be used any more
-    args_v = hop.inputargs(*[pyobj_repr for ign in hop.args_r])
-    c = hop.inputconst(pyobj_repr, __import__)
-    return hop.genop('simple_call', [c] + args_v, resulttype = pyobj_repr)
-
 BUILTIN_TYPER = {}
 BUILTIN_TYPER[objectmodel.instantiate] = rtype_instantiate
 BUILTIN_TYPER[isinstance] = rtype_builtin_isinstance
 BUILTIN_TYPER[hasattr] = rtype_builtin_hasattr
-BUILTIN_TYPER[__import__] = rtype_builtin___import__
 BUILTIN_TYPER[objectmodel.r_dict] = rtype_r_dict
 
 # _________________________________________________________________


More information about the pypy-commit mailing list