Commits

Amaury Forgeot d'Arc committed ce6dc7d

Remove unused parameter

  • Participants
  • Parent commits 692cd6b
  • Branches cpyext-init-cleanup

Comments (0)

Files changed (1)

pypy/module/cpyext/api.py

     struct PyPyAPI* pypyAPI = &_pypyAPI;
     """ % dict(members=structmembers)
 
-    functions = generate_decls_and_callbacks(db, export_symbols)
+    functions = generate_decls_and_callbacks(db)
 
     global_objects = []
     for obj in GLOBALS.values():
     pypy_macros_h = udir.join('pypy_macros.h')
     pypy_macros_h.write('\n'.join(pypy_macros))
 
-def generate_decls_and_callbacks(db, export_symbols, api_struct=True):
+def generate_decls_and_callbacks(db, api_struct=True):
     "NOT_RPYTHON"
     # implement function callbacks and generate function decls
     functions = []
 
     generate_macros(export_symbols, rename=False)
 
-    functions = generate_decls_and_callbacks(db, [], api_struct=False)
+    functions = generate_decls_and_callbacks(db, api_struct=False)
     code = "#include <Python.h>\n" + "\n".join(functions)
 
     eci = build_eci(False, export_symbols, code)