Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: pkg/analyzer/test/src/task/options_test.dart

Issue 2933103002: Remove an unused local variable. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/options_test.dart
diff --git a/pkg/analyzer/test/src/task/options_test.dart b/pkg/analyzer/test/src/task/options_test.dart
index 813fdea6498ccc3e58f20aff5fb2fc7f94299d21..41956adb7561210e8afd271da8a9093ab3a569b9 100644
--- a/pkg/analyzer/test/src/task/options_test.dart
+++ b/pkg/analyzer/test/src/task/options_test.dart
@@ -152,7 +152,6 @@ class ErrorCodeValuesTest {
errorTypeMap.putIfAbsent(code.runtimeType, () => <ErrorCode>[]).add(code);
}
- int totalCount = 0;
int missingErrorCodeCount = 0;
errorTypeMap.forEach((Type errorType, List<ErrorCode> codes) {
var listedNames = codes.map((ErrorCode code) => code.name).toSet();
@@ -244,7 +243,6 @@ class ErrorCodeValuesTest {
// Assert that all remaining declared names are in errorCodeValues
for (String declaredName in declaredNames) {
- ++totalCount;
if (!listedNames.contains(declaredName)) {
++missingErrorCodeCount;
print(' errorCodeValues is missing $errorType $declaredName');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698