Commit 0469479f by Corentin Wallez

Compiler: remove dead code in limitExpressionComplexity

TGraphTraverser is a class that does nothing by itself so the for loop was a noop statement and has been for at least two years (since 17732823, didn't check earlier). BUG=angleproject:591 Change-Id: I1919059fcb8987c2f043a71fed6223e16bc014d8 Reviewed-on: https://chromium-review.googlesource.com/316600 Tryjob-Request: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 700ad289
...@@ -744,17 +744,6 @@ bool TCompiler::limitExpressionComplexity(TIntermNode* root) ...@@ -744,17 +744,6 @@ bool TCompiler::limitExpressionComplexity(TIntermNode* root)
return false; return false;
} }
TDependencyGraph graph(root);
for (TFunctionCallVector::const_iterator iter = graph.beginUserDefinedFunctionCalls();
iter != graph.endUserDefinedFunctionCalls();
++iter)
{
TGraphFunctionCall* samplerSymbol = *iter;
TDependencyGraphTraverser graphTraverser;
samplerSymbol->traverse(&graphTraverser);
}
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment