From d468a7a631b3b4d6986f340fe2cf172d787bfe02 Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Wed, 12 Jun 2024 01:26:38 +0200 Subject: [PATCH] [Main] MainPy.cpp clean remove unused code --- src/Main/MainPy.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Main/MainPy.cpp b/src/Main/MainPy.cpp index 5463ee63b3..ca72d00ea4 100644 --- a/src/Main/MainPy.cpp +++ b/src/Main/MainPy.cpp @@ -155,8 +155,8 @@ PyMOD_INIT_FUNC(FreeCAD) path += upDir; break; } - } // end for (i = PyList_Size(pySysPath) - 1; i >= 0 ; --i) { - } // end if ( PyList_Check(pySysPath) ) { + } + } if (path.isEmpty()) { PyErr_SetString(PyExc_ImportError, "Cannot get path of the FreeCAD module!"); @@ -192,7 +192,6 @@ PyMOD_INIT_FUNC(FreeCAD) std::clog.rdbuf(&stdclog); std::cerr.rdbuf(&stdcerr); - // PyObject* module = _PyImport_FindBuiltin("FreeCAD"); PyObject* modules = PyImport_GetModuleDict(); PyObject* module = PyDict_GetItemString(modules, "FreeCAD"); if (!module) {