File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,6 @@ object Scanners {
177
177
class Scanner (source : SourceFile , override val startFrom : Offset = 0 )(implicit ctx : Context ) extends ScannerCommon (source)(ctx) {
178
178
val keepComments = ctx.settings.YkeepComments .value
179
179
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
-
185
180
/** All doc comments as encountered, each list contains doc comments from
186
181
* the same block level. Starting with the deepest level and going upward
187
182
*/
@@ -594,8 +589,6 @@ object Scanners {
594
589
595
590
if (comment.isDocComment)
596
591
docsPerBlockStack = (docsPerBlockStack.head :+ comment) :: docsPerBlockStack.tail
597
-
598
- revComments = comment :: revComments
599
592
}
600
593
601
594
true
You can’t perform that action at this time.
0 commit comments