changeset 209:f6afd8edeb66

removed useless function
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jul 2024 13:24:26 +0200
parents 315e1720a35f
children 6ca37fcf0979
files Sources/Plugin.cpp
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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))