From d1289bc020e79df9482c2cb46c65a1c41511c24b Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Thu, 15 Sep 2022 14:56:51 +0200 Subject: [PATCH] Removed deprecated API (#45) Pull request: https://github.com/com-lihaoyi/geny/pull/45 --- build.sc | 6 ++++++ geny/src/geny/ByteData.scala | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.sc b/build.sc index 7ebc2da..ad64b90 100644 --- a/build.sc +++ b/build.sc @@ -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") + ) } diff --git a/geny/src/geny/ByteData.scala b/geny/src/geny/ByteData.scala index b293337..acaeb25 100644 --- a/geny/src/geny/ByteData.scala +++ b/geny/src/geny/ByteData.scala @@ -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)