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") ; }