@@ -401,7 +401,7 @@ public void testIssue90() {
401
401
CompilerOptions options = createCompilerOptions ();
402
402
options .setFoldConstants (true );
403
403
options .setInlineVariables (true );
404
- options .setRemoveDeadCode (true );
404
+ options .setRemoveUnreachableCode (true );
405
405
test (options , "var x; x && alert(1);" , "" );
406
406
}
407
407
@@ -1476,7 +1476,7 @@ public void testDisambiguateProperties2() {
1476
1476
options .setClosurePass (true );
1477
1477
options .setCheckTypes (true );
1478
1478
options .setDisambiguateProperties (true );
1479
- options .setRemoveDeadCode (true );
1479
+ options .setRemoveUnreachableCode (true );
1480
1480
options .setRemoveAbstractMethods (true );
1481
1481
test (
1482
1482
options ,
@@ -1504,7 +1504,7 @@ public void testDisambiguatePropertiesWithPropertyInvalidationError() {
1504
1504
options .setCheckTypes (true );
1505
1505
options .setDisambiguateProperties (true );
1506
1506
options .setPropertiesThatMustDisambiguate (ImmutableSet .of ("a" ));
1507
- options .setRemoveDeadCode (true );
1507
+ options .setRemoveUnreachableCode (true );
1508
1508
options .setRemoveAbstractMethods (true );
1509
1509
test (
1510
1510
options ,
@@ -1531,7 +1531,7 @@ public void testDisambiguatePropertiesWithPropertyInvalidationError() {
1531
1531
public void testMarkPureCalls () {
1532
1532
String testCode = "function foo() {} foo();" ;
1533
1533
CompilerOptions options = createCompilerOptions ();
1534
- options .setRemoveDeadCode (true );
1534
+ options .setRemoveUnreachableCode (true );
1535
1535
1536
1536
testSame (options , testCode );
1537
1537
@@ -1748,7 +1748,7 @@ public void testRemoveUnreachableCode() {
1748
1748
String code = "function f() { return; f(); }" ;
1749
1749
testSame (options , code );
1750
1750
1751
- options .setRemoveDeadCode (true );
1751
+ options .setRemoveUnreachableCode (true );
1752
1752
test (options , code , "function f() {}" );
1753
1753
}
1754
1754
@@ -1784,7 +1784,7 @@ public void testSmartNamePassBug11163486() {
1784
1784
1785
1785
options .setCheckTypes (true );
1786
1786
options .setDisambiguateProperties (true );
1787
- options .setRemoveDeadCode (true );
1787
+ options .setRemoveUnreachableCode (true );
1788
1788
options .setRemoveUnusedVariables (Reach .ALL );
1789
1789
options .setRemoveUnusedPrototypeProperties (true );
1790
1790
options .setSmartNameRemoval (true );
@@ -1832,7 +1832,7 @@ public void testDeadCodeHasNoDisambiguationSideEffects() {
1832
1832
1833
1833
options .setCheckTypes (true );
1834
1834
options .setDisambiguateProperties (true );
1835
- options .setRemoveDeadCode (true );
1835
+ options .setRemoveUnreachableCode (true );
1836
1836
options .setRemoveUnusedVariables (Reach .ALL );
1837
1837
options .setRemoveUnusedPrototypeProperties (true );
1838
1838
options .setSmartNameRemoval (true );
@@ -4804,7 +4804,7 @@ public void testDeclareLegacyNamespaceSubModuleCrash() {
4804
4804
CompilationLevel .ADVANCED_OPTIMIZATIONS .setOptionsForCompilationLevel (options );
4805
4805
options .setLanguageOut (LanguageMode .ECMASCRIPT_2016 );
4806
4806
4807
- options .setRemoveDeadCode (false );
4807
+ options .setRemoveUnreachableCode (false );
4808
4808
options .setRemoveUnusedVariables (Reach .NONE );
4809
4809
options .setRemoveUnusedClassProperties (false );
4810
4810
0 commit comments