Skip to content

Commit

Permalink
Remove KeyDecoder[Repo] instance
Browse files Browse the repository at this point in the history
This is unused since #1220.

See #2281 (comment).
  • Loading branch information
fthomas committed Oct 16, 2021
1 parent 49fe121 commit 33135b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.scalasteward.core.vcs.data

import cats.Eq
import io.circe.{KeyDecoder, KeyEncoder}
import io.circe.KeyEncoder

final case class Repo(
owner: String,
Expand All @@ -30,14 +30,6 @@ object Repo {
implicit val repoEq: Eq[Repo] =
Eq.fromUniversalEquals

implicit val repoKeyDecoder: KeyDecoder[Repo] = {
val / = s"(.+)/([^/]+)".r
KeyDecoder.instance {
case owner / repo => Some(Repo(owner, repo))
case _ => None
}
}

implicit val repoKeyEncoder: KeyEncoder[Repo] =
KeyEncoder.instance(repo => repo.owner + "/" + repo.repo)
}

This file was deleted.

0 comments on commit 33135b9

Please sign in to comment.