From 206454c34ecf367f4a90b78e2bcb75ddc34113ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 3 May 2020 23:16:58 +0200 Subject: [PATCH] Remove makeTree that was meant for testing purpose. --- src/runner/pythonrunner.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index f76fcc2..6214b2e 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -897,16 +897,6 @@ BOOST_PYTHON_MODULE(mobase) .def("__len__", &IFileTree::size) .def("__bool__", +[](const IFileTree* tree) { return !tree->empty(); }) .def("__repr__", +[](const IFileTree* entry) { return "IFileTree(\"" + entry->name() + "\")"; }) - - .def("makeTree", +[]() -> std::shared_ptr { - struct MyTree : public IFileTree { - MyTree(std::shared_ptr parent = nullptr, QString name = "") : FileTreeEntry(parent, name), IFileTree() { } - protected: - std::shared_ptr makeDirectory(std::shared_ptr p, QString n) const override { return std::make_shared(p, n); } - void doPopulate(std::shared_ptr, std::vector> &) const override { } - }; - return std::make_shared(); - }).staticmethod("makeTree") ; }