Skip to content

Commit

Permalink
Remove the noop strictMissingRequires diagnostic group now that it …
Browse files Browse the repository at this point in the history
…unused.

PiperOrigin-RevId: 704857621
  • Loading branch information
concavelenz authored and copybara-github committed Dec 10, 2024
1 parent 3c7f64b commit a3fa922
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/com/google/javascript/jscomp/DiagnosticGroups.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,6 @@ public static DiagnosticGroup forName(String name) {
CheckMissingRequires.INDIRECT_NAMESPACE_REF_REQUIRE,
CheckMissingRequires.INDIRECT_NAMESPACE_REF_REQUIRE_TYPE);

public static final DiagnosticGroup STRICT_MISSING_REQUIRE =
DiagnosticGroups.registerDeprecatedGroup("strictMissingRequire");

/**
* A set of diagnostics expected when parsing and type checking partial programs. Useful for clutz
* (tool that extracts TypeScript definitions from JS code).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public final class J2clSuppressWarningsGuard extends WarningsGuard {
DiagnosticGroups.LATE_PROVIDE,
DiagnosticGroups.MISSING_OVERRIDE,
DiagnosticGroups.MISSING_REQUIRE,
DiagnosticGroups.STRICT_MISSING_REQUIRE,
DiagnosticGroups.STRICT_MODULE_DEP_CHECK,
DiagnosticGroups.SUSPICIOUS_CODE,
DiagnosticGroups.UNUSED_LOCAL_VARIABLE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ protected CompilerPass getProcessor(Compiler compiler) {
protected CompilerOptions getOptions() {
CompilerOptions options = super.getOptions();
options.setWarningLevel(DiagnosticGroups.MISSING_REQUIRE, CheckLevel.WARNING);
options.setWarningLevel(DiagnosticGroups.STRICT_MISSING_REQUIRE, CheckLevel.WARNING);
return options;
}

Expand Down

0 comments on commit a3fa922

Please sign in to comment.