do not highlight unused foreach parameter (IDEA-72671)

This commit is contained in:
anna
2012-02-13 18:41:26 +01:00
parent f6ea7db2c9
commit 86518ea411
2 changed files with 12 additions and 2 deletions
@@ -506,13 +506,13 @@ public class PostHighlightingPass extends TextEditorHighlightingPass {
}
}
}
else if (declarationScope instanceof PsiForeachStatement) {
/* else if (declarationScope instanceof PsiForeachStatement) {
HighlightInfo highlightInfo = checkUnusedParameter(parameter, progress);
if (highlightInfo != null) {
QuickFixAction.registerQuickFixAction(highlightInfo, new EmptyIntentionAction(UnusedSymbolLocalInspection.DISPLAY_NAME), myUnusedSymbolKey);
return highlightInfo;
}
}
}*/
return null;
}