ignore parameter for foreach (IDEA-72671)

This commit is contained in:
anna
2012-02-14 18:54:07 +01:00
parent 27ec78e579
commit a829ba2568
2 changed files with 3 additions and 3 deletions
@@ -506,13 +506,13 @@ public class PostHighlightingPass extends TextEditorHighlightingPass {
}
}
}
/* else if (declarationScope instanceof PsiForeachStatement) {
else if (declarationScope instanceof PsiForeachStatement && !Comparing.strEqual(parameter.getName(), "ignore")) {
HighlightInfo highlightInfo = checkUnusedParameter(parameter, progress);
if (highlightInfo != null) {
QuickFixAction.registerQuickFixAction(highlightInfo, new EmptyIntentionAction(UnusedSymbolLocalInspection.DISPLAY_NAME), myUnusedSymbolKey);
return highlightInfo;
}
}*/
}
return null;
}