Repository: 7mind/izumi
Pull request #1037 (2020-05-05 10:44:39)

Remove methods deprecated since 0.10.3, 0.10.5


Patch:
diff --git a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/DIResource.scala b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/DIResource.scala
index 0fda11e31..062d2167b 100644
--- a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/DIResource.scala
+++ b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/DIResource.scala
@@ -493,11 +493,6 @@ object DIResource {
     final def wrapRelease[G[x] >: F[x]](f: (InnerResource => G[Unit], InnerResource) => G[Unit]): DIResourceBase[G, OuterResource] = wrapReleaseImpl[G, OuterResource](this: this.type)(f)
 
     final def void: DIResourceBase[F, Unit] = map(_ => ())
-
-    @deprecated("Use wrapAcquire", "will be removed in 0.10.3")
-    final def logAcquire[G[x] >: F[x]](f: (=> G[InnerResource]) => G[InnerResource]): DIResourceBase[G, OuterResource] = wrapAcquire(f)
-    @deprecated("Use wrapRelease", "will be removed in 0.10.3")
-    final def logRelease[G[x] >: F[x]](f: (InnerResource => G[Unit], InnerResource) => G[Unit]): DIResourceBase[G, OuterResource] = wrapRelease(f)
   }
 
   object DIResourceBase {
diff --git a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala
index b6767e81f..1b17f0d31 100644
--- a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala
+++ b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala
@@ -99,7 +99,7 @@ trait AbstractBindingDefDSL[BindDSL[_], BindDSLAfterFrom[_], SetDSL[_]] {
 
   /** Same as `addImplicit[T].named(name)`
     * @deprecated Use `addImplicit[T].named(name)` instead, since 0.10.6 */
-  @deprecated("Use `addImplicit[T].named(name)` instead", "0.10.6")
+  @deprecated("Use `addImplicit[T].named(name)` instead", "will be removed in 0.10.8")
   final protected[this] def addImplicit[T: Tag](name: String)(implicit instance: T, pos: CodePositionMaterializer): Unit = {
     _registered(new SingletonRef(Bindings.binding(instance), mutable.Queue(SingletonInstruction.SetId(name, IdContract.stringIdContract)))).discard()
   }
diff --git a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/ModuleDefDSL.scala b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/ModuleDefDSL.scala
index 08b60e0a2..d9dc636e4 100644
--- a/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/ModuleDefDSL.scala
+++ b/distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/ModuleDefDSL.scala
@@ -465,11 +465,12 @@ object ModuleDefDSL {
         * Warning: removes the precise subtype of DIResource because of `DIResource.map`:
         * Integration checks on DIResource will be lost
         */
-      final def fromHas[R1 <: DIResourceBase[Any, T]: AnyConstructor](implicit tag: TrifunctorHasResourceTag[R1, T]): AfterBind = {
+      def fromHas[R1 <: DIResourceBase[Any, T]: AnyConstructor](implicit tag: TrifunctorHasResourceTag[R1, T]): AfterBind = {
         import tag._
-        val provider: ProviderMagnet[DIResourceBase[F[Any, E, ?], A]] = AnyConstructor[R1].zip(HasConstructor[R]).map2(ProviderMagnet.identity[BIOLocal[F]](tagBIOLocal)) {
-          case ((resource, r), f) => provideDIResource(f)(resource, r)
-        }
+        val provider: ProviderMagnet[DIResourceBase[F[Any, E, ?], A]] =
+          AnyConstructor[R1].zip(HasConstructor[R]).map2(ProviderMagnet.identity[BIOLocal[F]](tagBIOLocal)) {
+            case ((resource, r), f) => provideDIResource(f)(resource, r)
+          }
         dsl.fromResource(provider)
       }
     }
diff --git a/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/DIConfigReader.scala b/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/DIConfigReader.scala
index 1195a0e26..8b5d190f9 100644
--- a/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/DIConfigReader.scala
+++ b/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/DIConfigReader.scala
@@ -91,9 +91,6 @@ object DIConfigReader extends LowPriorityDIConfigReaderInstances {
         case Right(value) => Success(value)
       }
   }
-
-  @deprecated("Use derived", "will be removed in 0.10.3")
-  def derive[T: ClassTag](implicit dec: PureconfigAutoDerive[T]): DIConfigReader[T] = derived[T]
 }
 
 sealed trait LowPriorityDIConfigReaderInstances {
diff --git a/fundamentals/fundamentals-bio/src/main/scala/izumi/functional/bio/BIOExit.scala b/fundamentals/fundamentals-bio/src/main/scala/izumi/functional/bio/BIOExit.scala
index 1c91c5890..ba20e4317 100644
--- a/fundamentals/fundamentals-bio/src/main/scala/izumi/functional/bio/BIOExit.scala
+++ b/fundamentals/fundamentals-bio/src/main/scala/izumi/functional/bio/BIOExit.scala
@@ -21,8 +21,6 @@ object BIOExit {
   }
 
   object Trace {
-    @deprecated("Use ZIOTrace", "will be removed after 0.10.5")
-    private[bio] def zioTrace[E](cause: Cause[E]): Trace[E] = ZIOTrace(cause)
     def empty: Trace[Nothing] = new Trace[Nothing] {
       val asString: String = "<empty trace>"
       def toThrowable: Throwable = new RuntimeException(asString)


Test patch:
diff --git a/distage/distage-testkit-core/src/main/scala/izumi/distage/testkit/services/DISyntaxZIOEnv.scala b/distage/distage-testkit-core/src/main/scala/izumi/distage/testkit/services/DISyntaxZIOEnv.scala
deleted file mode 100644
index 7acbe70f3..000000000
--- a/distage/distage-testkit-core/src/main/scala/izumi/distage/testkit/services/DISyntaxZIOEnv.scala
+++ /dev/null
@@ -1,6 +0,0 @@
-package izumi.distage.testkit.services
-
-@deprecated("Use DistageBIOEnvSpecScalatest", "will be removed in 0.10.3")
-trait DISyntaxZIOEnv
-@deprecated("Use DistageBIOEnvSpecScalatest", "will be removed in 0.10.3")
-object DISyntaxZIOEnv extends DISyntaxZIOEnv