Skip to content

Commit 60379c2

Browse files
committed
Remove old datastructure for comments
1 parent c7730ad commit 60379c2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/dotty/tools/dotc/parsing/Scanners.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ object Scanners {
177177
class Scanner(source: SourceFile, override val startFrom: Offset = 0)(implicit ctx: Context) extends ScannerCommon(source)(ctx) {
178178
val keepComments = ctx.settings.YkeepComments.value
179179

180-
/** All comments in the reverse order of their position in the source.
181-
* set only when `keepComments` is true.
182-
*/
183-
private[this] var revComments: List[Comment] = Nil
184-
185180
/** All doc comments as encountered, each list contains doc comments from
186181
* the same block level. Starting with the deepest level and going upward
187182
*/
@@ -594,8 +589,6 @@ object Scanners {
594589

595590
if (comment.isDocComment)
596591
docsPerBlockStack = (docsPerBlockStack.head :+ comment) :: docsPerBlockStack.tail
597-
598-
revComments = comment :: revComments
599592
}
600593

601594
true

0 commit comments

Comments
 (0)