From 62f4a9679d29370c2ef79c32f0b5a12e6f0f9406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 2 May 2022 19:39:09 +0200 Subject: [PATCH] Remove useless stuff. --- src/mobase/wrappers/pyfiletree.cpp | 1 - src/runner/pythonrunner.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/mobase/wrappers/pyfiletree.cpp b/src/mobase/wrappers/pyfiletree.cpp index 8a08039..d102381 100644 --- a/src/mobase/wrappers/pyfiletree.cpp +++ b/src/mobase/wrappers/pyfiletree.cpp @@ -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")); diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 911e770..3d7a2ff 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -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> m_PythonObjects; - - // handle to extract_plugins() from mobase.private - std::function(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(); - // 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,