Delete commented code

This commit is contained in:
Hackerpilot 2015-06-04 13:48:20 -07:00
parent d251a7aeb2
commit f4db04bcb0
1 changed files with 0 additions and 3 deletions

View File

@ -277,7 +277,6 @@ class UnusedVariableCheck : BaseAnalyzer
import std.array : array; import std.array : array;
if (parameter.name != tok!"") if (parameter.name != tok!"")
{ {
// stderr.writeln("Adding parameter ", parameter.name.text);
immutable bool isRef = canFind(parameter.parameterAttributes, cast(IdType) tok!"ref") immutable bool isRef = canFind(parameter.parameterAttributes, cast(IdType) tok!"ref")
|| canFind(parameter.parameterAttributes, cast(IdType) tok!"in") || canFind(parameter.parameterAttributes, cast(IdType) tok!"in")
|| canFind(parameter.parameterAttributes, cast(IdType) tok!"out"); || canFind(parameter.parameterAttributes, cast(IdType) tok!"out");
@ -334,13 +333,11 @@ private:
{ {
if (inAggregateScope) if (inAggregateScope)
return; return;
// stderr.writeln("Adding ", name, " ", isParameter, " ", isRef);
tree[$ - 1].insert(new UnUsed(name, line, column, isParameter, isRef)); tree[$ - 1].insert(new UnUsed(name, line, column, isParameter, isRef));
} }
void variableUsed(string name) void variableUsed(string name)
{ {
// writeln("Marking ", name, " used");
size_t treeIndex = tree.length - 1; size_t treeIndex = tree.length - 1;
auto uu = UnUsed(name); auto uu = UnUsed(name);
while (true) while (true)