Skip to content

Commit a3fa922

Browse files
concavelenzcopybara-github
authored andcommitted
Remove the noop strictMissingRequires diagnostic group now that it unused.
PiperOrigin-RevId: 704857621
1 parent 3c7f64b commit a3fa922

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/com/google/javascript/jscomp/DiagnosticGroups.java

-3
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,6 @@ public static DiagnosticGroup forName(String name) {
426426
CheckMissingRequires.INDIRECT_NAMESPACE_REF_REQUIRE,
427427
CheckMissingRequires.INDIRECT_NAMESPACE_REF_REQUIRE_TYPE);
428428

429-
public static final DiagnosticGroup STRICT_MISSING_REQUIRE =
430-
DiagnosticGroups.registerDeprecatedGroup("strictMissingRequire");
431-
432429
/**
433430
* A set of diagnostics expected when parsing and type checking partial programs. Useful for clutz
434431
* (tool that extracts TypeScript definitions from JS code).

src/com/google/javascript/jscomp/J2clSuppressWarningsGuard.java

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public final class J2clSuppressWarningsGuard extends WarningsGuard {
4545
DiagnosticGroups.LATE_PROVIDE,
4646
DiagnosticGroups.MISSING_OVERRIDE,
4747
DiagnosticGroups.MISSING_REQUIRE,
48-
DiagnosticGroups.STRICT_MISSING_REQUIRE,
4948
DiagnosticGroups.STRICT_MODULE_DEP_CHECK,
5049
DiagnosticGroups.SUSPICIOUS_CODE,
5150
DiagnosticGroups.UNUSED_LOCAL_VARIABLE,

test/com/google/javascript/jscomp/CheckMissingRequiresTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ protected CompilerPass getProcessor(Compiler compiler) {
4242
protected CompilerOptions getOptions() {
4343
CompilerOptions options = super.getOptions();
4444
options.setWarningLevel(DiagnosticGroups.MISSING_REQUIRE, CheckLevel.WARNING);
45-
options.setWarningLevel(DiagnosticGroups.STRICT_MISSING_REQUIRE, CheckLevel.WARNING);
4645
return options;
4746
}
4847

0 commit comments

Comments
 (0)