Remove useless stuff.

This commit is contained in:
Mikaël Capelle
2022-05-02 19:39:09 +02:00
parent 958cf9de37
commit 62f4a9679d
2 changed files with 0 additions and 8 deletions
-1
View File
@@ -232,7 +232,6 @@ namespace mo2::python {
if (result == nullptr) {
throw std::logic_error("addDirectory failed");
}
MOBase::log::warn("{}", result->fileType());
return result;
},
py::arg("path"));
-7
View File
@@ -48,9 +48,6 @@ private:
// list of python objects - this does not keep the objects alive, it simply used to
// unload plugins
std::unordered_map<QString, std::vector<py::handle>> m_PythonObjects;
// handle to extract_plugins() from mobase.private
std::function<QList<QObject*>(py::object)> m_extract_plugins;
};
IPythonRunner* CreatePythonRunner()
@@ -109,10 +106,6 @@ bool PythonRunner::initialize(QStringList const& paths)
mo2::python::configure_python_stream();
mo2::python::configure_python_logging(mainNamespace["mobase"]);
m_extract_plugins = py::module_::import("mobase.private")
.attr("extract_plugins")
.cast<decltype(m_extract_plugins)>();
// we need to release the GIL here - which is what this does
//
// when Python is initialized, the GIl is acquired, and if it is not release,