From e360e448a99c4b252ad319542f093ecfa022072f Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sat, 31 Aug 2024 15:41:35 +0900 Subject: [PATCH] remove unused imports --- .../test/scala/diffson/conformance/CirceConformance.scala | 1 - .../shared/src/test/scala/diffson/circe/TestProtocol.scala | 1 - core/src/main/scala/diffson/jsonpointer/package.scala | 1 - core/src/test/scala/diffson/TestDynLcs.scala | 4 ---- core/src/test/scala/diffson/TestLcs.scala | 1 - core/src/test/scala/diffson/TestPatience.scala | 4 ---- core/src/test/scala/diffson/TestPatienceBigArray.scala | 3 --- .../main/scala/diffson/conformance/TestRfcConformance.scala | 3 --- testkit/shared/src/main/scala/diffson/TestArrayDiff.scala | 2 -- testkit/shared/src/main/scala/diffson/TestJsonDiff.scala | 3 --- .../shared/src/main/scala/diffson/TestJsonMergeDiff.scala | 4 ---- .../shared/src/main/scala/diffson/TestJsonMergePatch.scala | 3 --- testkit/shared/src/main/scala/diffson/TestJsonPatch.scala | 6 ------ testkit/shared/src/main/scala/diffson/TestJsonPointer.scala | 2 -- testkit/shared/src/main/scala/diffson/TestProtocol.scala | 1 - .../shared/src/main/scala/diffson/TestSerialization.scala | 1 - 16 files changed, 40 deletions(-) diff --git a/circe/jvm/src/test/scala/diffson/conformance/CirceConformance.scala b/circe/jvm/src/test/scala/diffson/conformance/CirceConformance.scala index db4615a..37b5dbc 100644 --- a/circe/jvm/src/test/scala/diffson/conformance/CirceConformance.scala +++ b/circe/jvm/src/test/scala/diffson/conformance/CirceConformance.scala @@ -20,7 +20,6 @@ package circe import jsonpatch.conformance._ import io.circe._ -import io.circe.syntax._ import cats.implicits._ import scala.io.Source diff --git a/circe/shared/src/test/scala/diffson/circe/TestProtocol.scala b/circe/shared/src/test/scala/diffson/circe/TestProtocol.scala index 4c44d45..022022e 100644 --- a/circe/shared/src/test/scala/diffson/circe/TestProtocol.scala +++ b/circe/shared/src/test/scala/diffson/circe/TestProtocol.scala @@ -20,7 +20,6 @@ package circe import cats.Eq import jsonpatch._ import jsonmergepatch._ -import cats.implicits._ import io.circe._ import io.circe.parser._ import io.circe.syntax._ diff --git a/core/src/main/scala/diffson/jsonpointer/package.scala b/core/src/main/scala/diffson/jsonpointer/package.scala index 32db461..f1f54a5 100644 --- a/core/src/main/scala/diffson/jsonpointer/package.scala +++ b/core/src/main/scala/diffson/jsonpointer/package.scala @@ -22,7 +22,6 @@ import cats.data.Chain import scala.util.Try -import scala.collection.compat._ import scala.collection.compat.immutable.ArraySeq package object jsonpointer { diff --git a/core/src/test/scala/diffson/TestDynLcs.scala b/core/src/test/scala/diffson/TestDynLcs.scala index 972ff7d..de6d7a2 100644 --- a/core/src/test/scala/diffson/TestDynLcs.scala +++ b/core/src/test/scala/diffson/TestDynLcs.scala @@ -16,10 +16,6 @@ package diffson.lcs -import cats.implicits._ - -import org.scalatest._ - class TestDynLcs extends TestLcs { val lcsImpl = new DynamicProgLcs[Char] diff --git a/core/src/test/scala/diffson/TestLcs.scala b/core/src/test/scala/diffson/TestLcs.scala index 236c6b8..cab842e 100644 --- a/core/src/test/scala/diffson/TestLcs.scala +++ b/core/src/test/scala/diffson/TestLcs.scala @@ -16,7 +16,6 @@ package diffson.lcs -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers diff --git a/core/src/test/scala/diffson/TestPatience.scala b/core/src/test/scala/diffson/TestPatience.scala index f2bfb57..7121c9e 100644 --- a/core/src/test/scala/diffson/TestPatience.scala +++ b/core/src/test/scala/diffson/TestPatience.scala @@ -16,10 +16,6 @@ package diffson.lcs -import cats.implicits._ - -import org.scalatest._ - class TestPatience extends TestLcs { val lcsImpl = new Patience[Char] diff --git a/core/src/test/scala/diffson/TestPatienceBigArray.scala b/core/src/test/scala/diffson/TestPatienceBigArray.scala index 45cf4cb..7664468 100644 --- a/core/src/test/scala/diffson/TestPatienceBigArray.scala +++ b/core/src/test/scala/diffson/TestPatienceBigArray.scala @@ -16,9 +16,6 @@ package diffson.lcs -import cats.implicits._ - -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers diff --git a/testkit/jvm/src/main/scala/diffson/conformance/TestRfcConformance.scala b/testkit/jvm/src/main/scala/diffson/conformance/TestRfcConformance.scala index 411e709..1b2254b 100644 --- a/testkit/jvm/src/main/scala/diffson/conformance/TestRfcConformance.scala +++ b/testkit/jvm/src/main/scala/diffson/conformance/TestRfcConformance.scala @@ -18,9 +18,6 @@ package diffson package jsonpatch package conformance -import cats.implicits._ - -import org.scalatest._ import org.scalatest.funsuite.AnyFunSuite import scala.util.Try diff --git a/testkit/shared/src/main/scala/diffson/TestArrayDiff.scala b/testkit/shared/src/main/scala/diffson/TestArrayDiff.scala index 9b47d4d..31241aa 100644 --- a/testkit/shared/src/main/scala/diffson/TestArrayDiff.scala +++ b/testkit/shared/src/main/scala/diffson/TestArrayDiff.scala @@ -18,13 +18,11 @@ package diffson package jsonpatch import lcsdiff._ -import cats.implicits._ import diffson.lcs.Patience import org.scalacheck.Properties import org.scalacheck.Prop.forAll import scala.util.Try -import scala.language.implicitConversions abstract class TestArrayDiff[Json](implicit Json: Jsony[Json]) extends Properties("TestArrayDiff") diff --git a/testkit/shared/src/main/scala/diffson/TestJsonDiff.scala b/testkit/shared/src/main/scala/diffson/TestJsonDiff.scala index 234d377..8dd08ac 100644 --- a/testkit/shared/src/main/scala/diffson/TestJsonDiff.scala +++ b/testkit/shared/src/main/scala/diffson/TestJsonDiff.scala @@ -19,14 +19,11 @@ package jsonpatch import lcsdiff._ import jsonpointer._ -import cats._ import cats.implicits._ import diffson.lcs.Patience -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import scala.util.Try -import scala.language.implicitConversions import org.scalatest.matchers.should.Matchers abstract class TestJsonDiff[Json](implicit Json: Jsony[Json]) diff --git a/testkit/shared/src/main/scala/diffson/TestJsonMergeDiff.scala b/testkit/shared/src/main/scala/diffson/TestJsonMergeDiff.scala index afb9263..2811031 100644 --- a/testkit/shared/src/main/scala/diffson/TestJsonMergeDiff.scala +++ b/testkit/shared/src/main/scala/diffson/TestJsonMergeDiff.scala @@ -17,12 +17,8 @@ package diffson package jsonmergepatch -import cats._ - -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec -import scala.language.implicitConversions import org.scalatest.matchers.should.Matchers abstract class TestJsonMergeDiff[Json](implicit Json: Jsony[Json]) diff --git a/testkit/shared/src/main/scala/diffson/TestJsonMergePatch.scala b/testkit/shared/src/main/scala/diffson/TestJsonMergePatch.scala index 208ae14..f7d49a6 100644 --- a/testkit/shared/src/main/scala/diffson/TestJsonMergePatch.scala +++ b/testkit/shared/src/main/scala/diffson/TestJsonMergePatch.scala @@ -17,9 +17,6 @@ package diffson package jsonmergepatch -import cats.implicits._ - -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import scala.util.Try diff --git a/testkit/shared/src/main/scala/diffson/TestJsonPatch.scala b/testkit/shared/src/main/scala/diffson/TestJsonPatch.scala index 0a1920e..6b26a75 100644 --- a/testkit/shared/src/main/scala/diffson/TestJsonPatch.scala +++ b/testkit/shared/src/main/scala/diffson/TestJsonPatch.scala @@ -17,16 +17,10 @@ package diffson package jsonpatch -import jsonpointer._ - -import cats.implicits._ - -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import scala.util.Try -import scala.language.implicitConversions import org.scalatest.matchers.should.Matchers abstract class TestJsonPatch[Json](implicit Json: Jsony[Json]) diff --git a/testkit/shared/src/main/scala/diffson/TestJsonPointer.scala b/testkit/shared/src/main/scala/diffson/TestJsonPointer.scala index 908a678..729a28d 100644 --- a/testkit/shared/src/main/scala/diffson/TestJsonPointer.scala +++ b/testkit/shared/src/main/scala/diffson/TestJsonPointer.scala @@ -19,12 +19,10 @@ package jsonpointer import cats.implicits._ -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import scala.util.Try -import scala.language.implicitConversions import org.scalatest.matchers.should.Matchers abstract class TestJsonPointer[Json](implicit Json: Jsony[Json]) diff --git a/testkit/shared/src/main/scala/diffson/TestProtocol.scala b/testkit/shared/src/main/scala/diffson/TestProtocol.scala index b44ea01..1fe42d0 100644 --- a/testkit/shared/src/main/scala/diffson/TestProtocol.scala +++ b/testkit/shared/src/main/scala/diffson/TestProtocol.scala @@ -21,7 +21,6 @@ import jsonpointer._ import jsonmergepatch._ import cats._ -import cats.implicits._ import scala.util.Try diff --git a/testkit/shared/src/main/scala/diffson/TestSerialization.scala b/testkit/shared/src/main/scala/diffson/TestSerialization.scala index c06bcc9..db5e7ea 100644 --- a/testkit/shared/src/main/scala/diffson/TestSerialization.scala +++ b/testkit/shared/src/main/scala/diffson/TestSerialization.scala @@ -20,7 +20,6 @@ import jsonpatch._ import jsonpointer._ import jsonmergepatch._ -import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers