File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -365,31 +365,6 @@ private static Lazy<PyObject> GetModuleLazy(string moduleName)
365365 ? throw new ArgumentNullException ( nameof ( moduleName ) )
366366 : new Lazy < PyObject > ( ( ) => PyModule . Import ( moduleName ) , isThreadSafe : false ) ;
367367
368- private static void RunExitFuncs ( )
369- {
370- PyObject atexit ;
371- try
372- {
373- atexit = Py . Import ( "atexit" ) ;
374- }
375- catch ( PythonException e ) when ( e . Is ( Exceptions . ImportError ) )
376- {
377- // The runtime may not provided `atexit` module.
378- return ;
379- }
380- using ( atexit )
381- {
382- try
383- {
384- atexit . InvokeMethod ( "_run_exitfuncs" ) . Dispose ( ) ;
385- }
386- catch ( PythonException e )
387- {
388- Console . Error . WriteLine ( e ) ;
389- }
390- }
391- }
392-
393368 private static void SetPyMember ( out PyObject obj , StolenReference value )
394369 {
395370 // XXX: For current usages, value should not be null.
You can’t perform that action at this time.
0 commit comments