Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 16, 2024
1 parent f0ce861 commit b04f94b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions main/eval/src/mill/eval/Terminal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ object Terminal {
}
}

def printTerm(term: Terminal): String = term match {
case Terminal.Task(task) => task.toString()
case labelled: Terminal.Labelled[_] =>
val Seq(first, rest @ _*) = destSegments(labelled).value
val msgParts = Seq(first.asInstanceOf[Segment.Label].value) ++ rest.map {
case Segment.Label(s) => "." + s
case Segment.Cross(s) => "[" + s.mkString(",") + "]"
}
msgParts.mkString
}
@deprecated("User Terminal#toString instead")
def printTerm(term: Terminal): String = term.toString
}

0 comments on commit b04f94b

Please sign in to comment.