Skip to content

Commit

Permalink
remove unused opening reader
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed May 15, 2024
1 parent de07826 commit 0243b17
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/common/src/main/Json.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ object Json:
given [A](using Show[A]): KeyWrites[A] with
def writeKey(key: A) = key.show

given Reads[LilaOpeningFamily] = Reads[LilaOpeningFamily]: f =>
f.get[String]("key")
.flatMap(LilaOpeningFamily.find)
.fold[JsResult[LilaOpeningFamily]](JsError(Nil))(JsSuccess(_))

given NoJsonHandler[chess.Square] with {}

import lila.core.LightUser
Expand Down

0 comments on commit 0243b17

Please sign in to comment.