Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7637884

Browse files
committed
removed dead code
1 parentad0d4e7 commit7637884

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
?thrownewArgumentNullException(nameof(moduleName))
366366
:newLazy<PyObject>(()=>PyModule.Import(moduleName),isThreadSafe:false);
367367

368-
privatestaticvoidRunExitFuncs()
369-
{
370-
PyObjectatexit;
371-
try
372-
{
373-
atexit=Py.Import("atexit");
374-
}
375-
catch(PythonExceptione)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(PythonExceptione)
387-
{
388-
Console.Error.WriteLine(e);
389-
}
390-
}
391-
}
392-
393368
privatestaticvoidSetPyMember(outPyObjectobj,StolenReferencevalue)
394369
{
395370
// XXX: For current usages, value should not be null.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp