Skip to content

Commit

Permalink
drop the unnecessary ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
lbialy committed Jul 30, 2024
1 parent 2d0d736 commit c657482
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/shared/src/main/scala/org/virtuslab/yaml/Node.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ sealed trait Node {

object Node {

// Only for MappingNode key order, only ScalarNodes can be keys.
implicit val nodeOrdering: Ordering[Node] = Ordering.by[Node, String] {
case ScalarNode(value, _) => value
case _ => ""
}

final case class ScalarNode private[yaml] (value: String, tag: Tag, pos: Option[Range] = None)
extends Node

Expand Down

0 comments on commit c657482

Please sign in to comment.