Skip to content

Commit

Permalink
Removed deprecated API (#45)
Browse files Browse the repository at this point in the history
Pull request: #45
  • Loading branch information
lefou authored Sep 15, 2022
1 parent 548045f commit d1289bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ trait MimaCheck extends Mima {
if (ZincWorkerUtil.isScala3(scalaVersion())) Agg.empty[Dep]
else super.mimaPreviousArtifacts()
}

override def mimaBinaryIssueFilters: T[Seq[ProblemFilter]] = Seq(
// deprecated since its inception in 0.3.0
ProblemFilter.exclude[DirectMissingMethodProblem]("geny.ByteData.string"),
ProblemFilter.exclude[DirectMissingMethodProblem]("geny.ByteData#Chunks.string")
)
}


Expand Down
6 changes: 0 additions & 6 deletions geny/src/geny/ByteData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ trait ByteData {

def bytes: Array[Byte]

@deprecated("Use .text()")
def string(): String = text(StandardCharsets.UTF_8)

@deprecated("Use .text()")
def string(codec: Codec): String = new String(bytes, codec.charSet)

def text(): String = text(StandardCharsets.UTF_8)
def text(codec: Codec): String = new String(bytes, codec.charSet)

Expand Down

0 comments on commit d1289bc

Please sign in to comment.