Skip to content

Commit e74ca62

Browse files
tbreisacherblickly
tbreisacher
authored andcommitted
Remove a deprecated method in CompilerTestCase.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=126705356
1 parent 5474f3f commit e74ca62

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

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

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ public abstract class CompilerTestCase extends TestCase {
9090
*/
9191
private boolean newTypeInferenceEnabled = false;
9292

93-
@Deprecated private CheckLevel reportMissingOverrideCheckLevel = CheckLevel.WARNING;
94-
9593
/** Whether to test the compiler pass before the type check. */
9694
protected boolean runTypeCheckAfterProcessing = false;
9795

@@ -381,21 +379,6 @@ protected void allowExternsChanges(boolean allowExternsChanges) {
381379
this.allowExternsChanges = allowExternsChanges;
382380
}
383381

384-
/**
385-
* Perform type checking before running the test pass. This will check
386-
* for type errors and annotate nodes with type information.
387-
*
388-
* @param level the level of severity to report for type errors
389-
*
390-
* @deprecated Use enableTypeCheck()
391-
* @see TypeCheck
392-
*/
393-
@Deprecated
394-
public void enableTypeCheck(CheckLevel level) {
395-
enableTypeCheck();
396-
reportMissingOverrideCheckLevel = level;
397-
}
398-
399382
/**
400383
* Perform type checking before running the test pass. This will check
401384
* for type errors and annotate nodes with type information.
@@ -540,11 +523,11 @@ protected void setExpectParseWarningsThisTest() {
540523
}
541524

542525
/** Returns a newly created TypeCheck. */
543-
private static TypeCheck createTypeCheck(Compiler compiler, CheckLevel level) {
526+
private static TypeCheck createTypeCheck(Compiler compiler) {
544527
ReverseAbstractInterpreter rai =
545528
new SemanticReverseAbstractInterpreter(compiler.getTypeRegistry());
546529

547-
return new TypeCheck(compiler, rai, compiler.getTypeRegistry(), level);
530+
return new TypeCheck(compiler, rai, compiler.getTypeRegistry());
548531
}
549532

550533
private static void runNewTypeInference(Compiler compiler, Node externs, Node js) {
@@ -1273,7 +1256,7 @@ private void test(
12731256
// objects for the same type are created, and the type system
12741257
// uses reference equality to compare many types.
12751258
if (!runTypeCheckAfterProcessing && typeCheckEnabled && i == 0) {
1276-
TypeCheck check = createTypeCheck(compiler, reportMissingOverrideCheckLevel);
1259+
TypeCheck check = createTypeCheck(compiler);
12771260
check.processForTesting(externsRoot, mainRoot);
12781261
} else if (!this.runNTIAfterProcessing
12791262
&& this.newTypeInferenceEnabled
@@ -1316,7 +1299,7 @@ private void test(
13161299
}
13171300

13181301
if (runTypeCheckAfterProcessing && typeCheckEnabled && i == 0) {
1319-
TypeCheck check = createTypeCheck(compiler, reportMissingOverrideCheckLevel);
1302+
TypeCheck check = createTypeCheck(compiler);
13201303
check.processForTesting(externsRoot, mainRoot);
13211304
} else if (this.runNTIAfterProcessing
13221305
&& this.newTypeInferenceEnabled

0 commit comments

Comments
 (0)