# HG changeset patch # User Sebastien Jodogne # Date 1720005866 -7200 # Node ID f6afd8edeb6624bb5f940c1618cb91ebab9a1ddf # Parent 315e1720a35f0c1cfa2ee50798a56685aa72731f removed useless function diff -r 315e1720a35f -r f6afd8edeb66 Sources/Plugin.cpp --- a/Sources/Plugin.cpp Wed Jul 03 12:56:18 2024 +0200 +++ b/Sources/Plugin.cpp Wed Jul 03 13:24:26 2024 +0200 @@ -263,12 +263,6 @@ static bool displayMemoryUsageStopping_ = false; -static void InstallClasses(PyObject* module) -{ - RegisterOrthancSdk(module); -} - - static void SetupGlobalFunctions() { if (!globalFunctions_.empty()) @@ -523,7 +517,7 @@ #endif SetupGlobalFunctions(); - PythonLock::GlobalInitialize("orthanc", "OrthancException", GetGlobalFunctions, InstallClasses, isVerbose); + PythonLock::GlobalInitialize("orthanc", "OrthancException", GetGlobalFunctions, RegisterOrthancSdk, isVerbose); PythonLock::AddSysPath(userScriptDirectory.string()); if (pythonConfig.GetBooleanValue("DisplayMemoryUsage", false))