Skip to content

Commit bbe2655

Browse files
committed
Drop redundant method
1 parent 55d3501 commit bbe2655

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] w
212212
// be careful not to get into an infinite recursion. If recursion count
213213
// exceeds `DerefLimit`, approximate with `t` instead.
214214
derefCount += 1
215-
if t.pending || derefCount >= DerefLimit then t
215+
if t.evaluating || derefCount >= DerefLimit then t
216216
else try mapOver(t.ref) finally derefCount -= 1
217217
case tp: TypeVar =>
218218
tp

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,8 +2578,6 @@ object Types {
25782578
private var myRef: Type = null
25792579
private var computed = false
25802580

2581-
def pending(using Context): Boolean = computed && myRef == null
2582-
25832581
def ref(implicit ctx: Context): Type =
25842582
if computed then
25852583
if myRef == null then

0 commit comments

Comments
 (0)