Skip to content

Commit 7637884

Browse files
committed
removed dead code
1 parent ad0d4e7 commit 7637884

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/runtime/Runtime.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)