Commits

Ronan Lamy  committed ff0274f

rm unused argument 'constargs'

  • Participants
  • Parent commits 9d88b48
  • Branches translation-cleanup

Comments (0)

Files changed (2)

File pypy/objspace/flow/flowcontext.py

 
 class FlowSpaceFrame(pyframe.CPythonFrame):
 
-    def __init__(self, space, func, constargs=None):
+    def __init__(self, space, func):
         code = HostCode._from_code(space, func.func_code)
         self.pycode = code
         self.space = space
         self.f_lineno = code.co_firstlineno
         self.last_instr = 0
 
-        if constargs is None:
-            constargs = {}
         formalargcount = code.getformalargcount()
         arg_list = [Variable() for i in range(formalargcount)]
-        for position, value in constargs.items():
-            arg_list[position] = Constant(value)
         self.setfastscope(arg_list)
 
         self.w_locals = None # XXX: only for compatibility with PyFrame

File pypy/objspace/flow/objspace.py

             w_type = w_instclass
         return FSException(w_type, w_value)
 
-    def build_flow(self, func, constargs={}, tweak_for_generator=True):
+    def build_flow(self, func, tweak_for_generator=True):
         """
         """
         if func.func_doc and func.func_doc.lstrip().startswith('NOT_RPYTHON'):
             raise Exception, "%r is tagged as NOT_RPYTHON" % (func,)
-        frame = self.frame = FlowSpaceFrame(self, func, constargs)
+        frame = self.frame = FlowSpaceFrame(self, func)
         frame.build_flow()
         graph = frame.graph
         fixeggblocks(graph)