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
@@ -9,8 +9,6 @@
<config>
<StartupProject><!-- STRING: path to project settings xml file --></StartupProject>
<FilterUndefinedNodesFromGraph><!-- BOOL: filter out undefined nodes in graph --></FilterUndefinedNodesFromGraph>
<source>
<CompilerFlags>
<CompilerFlag><!-- STRING: compiler flag, including the dash e.g. -v --></CompilerFlag>
-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;
}
-5
View File
@@ -21,11 +21,6 @@ std::string ApplicationSettings::getStartupProjectFilePath() const
return getValue<std::string>("StartupProject", "");
}
bool ApplicationSettings::filterUndefinedNodesFromGraph() const
{
return getValue<bool>("FilterUndefinedNodesFromGraph", false);
}
std::string ApplicationSettings::getFontName() const
{
return getValue<std::string>("application/font_name", "Source Code Pro");
-1
View File
@@ -13,7 +13,6 @@ public:
~ApplicationSettings();
std::string getStartupProjectFilePath() const;
bool filterUndefinedNodesFromGraph() const;
// application
std::string getFontName() const;