193193import com .oracle .graal .python .builtins .objects .tuple .StructSequence .Descriptor ;
194194import com .oracle .graal .python .builtins .objects .type .PythonAbstractClass ;
195195import com .oracle .graal .python .builtins .objects .type .PythonBuiltinClass ;
196- import com .oracle .graal .python .builtins .objects .type .PythonClass ;
197196import com .oracle .graal .python .builtins .objects .type .PythonManagedClass ;
198197import com .oracle .graal .python .builtins .objects .type .SpecialMethodSlot ;
199198import com .oracle .graal .python .builtins .objects .type .TypeNodes ;
@@ -295,7 +294,6 @@ public final class PythonCextBuiltins extends PythonBuiltins {
295294
296295 public static final String PYTHON_CEXT = "python_cext" ;
297296
298- private static final String ERROR_HANDLER = "error_handler" ;
299297 public static final String NATIVE_NULL = "native_null" ;
300298
301299 private PythonObject errorHandler ;
@@ -308,11 +306,6 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
308306 @ Override
309307 public void initialize (Python3Core core ) {
310308 super .initialize (core );
311- PythonClass errorHandlerClass = core .factory ().createPythonClassAndFixupSlots (core .getLanguage (), PythonBuiltinClassType .PythonClass ,
312- "CErrorHandler" , new PythonAbstractClass []{core .lookupType (PythonBuiltinClassType .PythonObject )});
313- builtinConstants .put ("CErrorHandler" , errorHandlerClass );
314- errorHandler = core .factory ().createPythonObject (errorHandlerClass );
315- builtinConstants .put (ERROR_HANDLER , errorHandler );
316309 // TODO can be removed when python_cext.py is gone
317310 builtinConstants .put (NATIVE_NULL , core .getContext ().getNativeNull ());
318311 builtinConstants .put ("PyEval_SaveThread" , new PyEvalSaveThread ());
@@ -378,15 +371,6 @@ Object run(VirtualFrame frame, Object o) {
378371 }
379372 }
380373
381- @ Builtin (name = "Py_ErrorHandler" , minNumOfPositionalArgs = 1 , declaresExplicitSelf = true )
382- @ GenerateNodeFactory
383- public abstract static class PyErrorHandlerNode extends PythonUnaryBuiltinNode {
384- @ Specialization
385- static Object run (PythonModule cextPython ) {
386- return ((PythonCextBuiltins ) cextPython .getBuiltins ()).errorHandler ;
387- }
388- }
389-
390374 @ Builtin (name = "Py_NotImplemented" )
391375 @ GenerateNodeFactory
392376 public abstract static class PyNotImplementedNode extends PythonBuiltinNode {
0 commit comments