change old DAG implementation to pass unit tests

This commit is contained in:
wmayer
2017-01-22 17:03:59 +01:00
parent 6105ea7a69
commit 72c7a8ab00
2 changed files with 36 additions and 40 deletions
-4
View File
@@ -492,7 +492,6 @@ Py::List DocumentPy::getObjects(void) const
Py::List DocumentPy::getToplogicalSortedObjects(void) const
{
#ifndef USE_OLD_DAG
std::vector<DocumentObject*> objs = getDocumentPtr()->topologicalSort();
Py::List res;
@@ -501,9 +500,6 @@ Py::List DocumentPy::getToplogicalSortedObjects(void) const
res.append(Py::Object((*It)->getPyObject(), true));
return res;
#else
return Py::List();
#endif
}
Py::List DocumentPy::getRootObjects(void) const