logic: removed FilterUndefinedNodesFromGraph setting

because it is confusing and not necessary anymore since we have bundled nodes.
This commit is contained in:
Eberhard Graether
2015-07-18 13:46:03 +02:00
parent 5722b4dc23
commit 85d2ebc32a
4 changed files with 0 additions and 34 deletions
-26
View File
@@ -867,32 +867,6 @@ std::shared_ptr<Graph> Storage::getGraphForActiveTokenIds(const std::vector<Id>&
}
}
if (ApplicationSettings::getInstance()->filterUndefinedNodesFromGraph())
{
bool allUndefined = true;
Node::NodeTypeMask undefinedMask =
Node::NODE_UNDEFINED | Node::NODE_UNDEFINED_TYPE |
Node::NODE_UNDEFINED_VARIABLE | Node::NODE_UNDEFINED_FUNCTION;
for (Id tokenId : tokenIds)
{
Token* token = m_graph.getTokenById(tokenId);
if (token && token->isNode() && !dynamic_cast<Node*>(token)->isType(undefinedMask))
{
allUndefined = false;
break;
}
}
if (!allUndefined)
{
QueryTree tree("!'undefined'");
std::shared_ptr<Graph> outGraph = std::make_shared<Graph>();
GraphFilterConductor().filter(&tree, graph.get(), outGraph.get());
return outGraph;
}
}
return graph;
}