Skip to content

Commit 43e3fbe

Browse files
committed
Remove unused method in Completion
1 parent 3f3fb3d commit 43e3fbe

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compiler/src/dotty/tools/dotc/interactive/Completion.scala

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,6 @@ object Completion {
233233
(info.offset, completionList)
234234
}
235235

236-
/** Possible completions of members of `prefix` which are accessible when called inside `boundary` */
237-
def completions(prefix: Type, boundary: Symbol)(implicit ctx: Context): List[Symbol] =
238-
Interactive.safely {
239-
if (boundary != NoSymbol) {
240-
val boundaryCtx = ctx.withOwner(boundary)
241-
def exclude(sym: Symbol) = sym.isAbsent || sym.is(Synthetic) || sym.is(Artifact)
242-
def addMember(name: Name, buf: mutable.Buffer[SingleDenotation]): Unit =
243-
buf ++= prefix.member(name).altsWith(sym =>
244-
!exclude(sym) && sym.isAccessibleFrom(prefix)(boundaryCtx))
245-
prefix.memberDenots(completionsFilter, addMember).map(_.symbol).toList
246-
}
247-
else Nil
248-
}
249-
250236
/** Filter for names that should appear when looking for completions. */
251237
private[this] object completionsFilter extends NameFilter {
252238
def apply(pre: Type, name: Name)(implicit ctx: Context): Boolean =

0 commit comments

Comments
 (0)