Skip to content

Commit ebbb0f4

Browse files
committed
remove unnecessary changes in Comments.scala
1 parent 9b9e3d4 commit ebbb0f4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ object Comments {
6262
expanded.map(removeSections(_, "@usecase", "@define"))
6363

6464
val isDocComment: Boolean = Comment.isDocComment(raw)
65-
val isHeaderComment: Boolean = Comment.isHeaderComment(raw)
6665

6766
/**
6867
* Expands this comment by giving its content to `f`, and then parsing the `@usecase` sections.
@@ -79,12 +78,8 @@ object Comments {
7978
}
8079

8180
object Comment {
82-
val usingDirectives: List[String] = List("// using", "//> using")
83-
val ammoniteHeaders: List[String] = List("// scala", "// ammonite")
8481

8582
def isDocComment(comment: String): Boolean = comment.startsWith("/**")
86-
def isHeaderComment(comment: String): Boolean =
87-
(usingDirectives ++ ammoniteHeaders).exists(comment.startsWith)
8883

8984
def apply(span: Span, raw: String): Comment =
9085
Comment(span, raw, None, Nil, Map.empty)

0 commit comments

Comments
 (0)