@@ -5725,8 +5725,6 @@ private[optimizer] object OptimizerCore {
5725
5725
private final class TooManyRollbacksException
5726
5726
extends scala.util.control.ControlThrowable
5727
5727
5728
- private val AnonFunctionClassPrefix = " sjsr_AnonFunction"
5729
-
5730
5728
private type CancelFun = () => Nothing
5731
5729
private type PreTransCont = PreTransform => TailRec [Tree ]
5732
5730
@@ -5736,12 +5734,6 @@ private[optimizer] object OptimizerCore {
5736
5734
def isNullable : Boolean = base.isNullable
5737
5735
5738
5736
def isNothingType : Boolean = base == NothingType
5739
-
5740
- def toNonNullable : RefinedType = {
5741
- if (! isNullable) this
5742
- else if (base == NullType ) RefinedType .Nothing
5743
- else RefinedType (base.toNonNullable, isExact, allocationSite)
5744
- }
5745
5737
}
5746
5738
5747
5739
private object RefinedType {
@@ -5768,7 +5760,6 @@ private[optimizer] object OptimizerCore {
5768
5760
}
5769
5761
5770
5762
val NoRefinedType = RefinedType (VoidType )
5771
- val Nothing = RefinedType (NothingType )
5772
5763
}
5773
5764
5774
5765
/**
@@ -6018,12 +6009,6 @@ private[optimizer] object OptimizerCore {
6018
6009
copy(implsBeingInlined = implsBeingInlined + impl)
6019
6010
}
6020
6011
6021
- def inlining (impls : Set [Scope .InliningID ]): Scope = {
6022
- val intersection = implsBeingInlined.intersect(impls)
6023
- assert(intersection.isEmpty, s " Circular inlining of $intersection" )
6024
- copy(implsBeingInlined = implsBeingInlined ++ impls)
6025
- }
6026
-
6027
6012
def withImportReplacement (importReplacement : ImportReplacement ): Scope = {
6028
6013
assert(this .importReplacement.isEmpty, " Alreadying replacing " +
6029
6014
s " $this.importReplacement while trying to replace $importReplacement" )
@@ -6418,10 +6403,6 @@ private[optimizer] object OptimizerCore {
6418
6403
if (y >= 0 ) x- y <= x
6419
6404
else x- y > x
6420
6405
6421
- /** Tests whether `-x` is valid without falling out of range. */
6422
- private def canNegateLong (x : Long ): Boolean =
6423
- x != Long .MinValue
6424
-
6425
6406
private final class Intrinsics (intrinsicsMap : Map [(ClassName , MethodName ), Int ]) {
6426
6407
def apply (flags : ApplyFlags , target : AbstractMethodID ): Int = {
6427
6408
if (flags.isPrivate || flags.isConstructor) {
0 commit comments