diff --git a/daml-lf/transaction/src/test/scala/com/digitalasset/daml/lf/crypto/HashSpec.scala b/daml-lf/transaction/src/test/scala/com/digitalasset/daml/lf/crypto/HashSpec.scala index f970e13ac0d5..9a6ee0feb9a7 100644 --- a/daml-lf/transaction/src/test/scala/com/digitalasset/daml/lf/crypto/HashSpec.scala +++ b/daml-lf/transaction/src/test/scala/com/digitalasset/daml/lf/crypto/HashSpec.scala @@ -14,12 +14,10 @@ import shapeless.record.{Record => HRecord} import shapeless.syntax.singleton._ import shapeless.{Coproduct => HSum} -import scala.annotation.nowarn import scala.language.implicitConversions class HashSpec extends AnyWordSpec with Matchers { - @nowarn("msg=dead code following this construct") private val packageId0 = Ref.PackageId.assertFromString("package") private val complexRecordT = diff --git a/ledger/error/generator/test/suite/scala/com/daml/error/generator/ErrorCodeDocumentationGeneratorSpec.scala b/ledger/error/generator/test/suite/scala/com/daml/error/generator/ErrorCodeDocumentationGeneratorSpec.scala index ea7e96742314..2fdbba98ce57 100644 --- a/ledger/error/generator/test/suite/scala/com/daml/error/generator/ErrorCodeDocumentationGeneratorSpec.scala +++ b/ledger/error/generator/test/suite/scala/com/daml/error/generator/ErrorCodeDocumentationGeneratorSpec.scala @@ -12,9 +12,6 @@ import com.daml.error._ import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers -import scala.annotation.nowarn - -@nowarn("msg=deprecated") class ErrorCodeDocumentationGeneratorSpec extends AnyFlatSpec with Matchers { private val className = ErrorCodeDocumentationGenerator.getClass.getSimpleName diff --git a/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/commands/tracker/CommandTracker.scala b/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/commands/tracker/CommandTracker.scala index d54503ef9232..c33a56eb928c 100644 --- a/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/commands/tracker/CommandTracker.scala +++ b/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/commands/tracker/CommandTracker.scala @@ -27,7 +27,6 @@ import com.google.rpc.status.{Status => StatusProto} import io.grpc.Status import org.slf4j.LoggerFactory -import scala.annotation.nowarn import scala.collection.{immutable, mutable} import scala.concurrent.duration.FiniteDuration import scala.concurrent.{Future, Promise} @@ -235,7 +234,6 @@ private[commands] class CommandTracker[Context]( } } - @nowarn("msg=deprecated") private def registerSubmission(submission: Ctx[Context, CommandSubmission]): Unit = { val commands = submission.value.commands val submissionId = commands.submissionId diff --git a/ledger/ledger-api-client/src/test/suite/scala/com/digitalasset/ledger/client/services/commands/CommandTrackerFlowTest.scala b/ledger/ledger-api-client/src/test/suite/scala/com/digitalasset/ledger/client/services/commands/CommandTrackerFlowTest.scala index 43da201267b4..9c43718cb960 100644 --- a/ledger/ledger-api-client/src/test/suite/scala/com/digitalasset/ledger/client/services/commands/CommandTrackerFlowTest.scala +++ b/ledger/ledger-api-client/src/test/suite/scala/com/digitalasset/ledger/client/services/commands/CommandTrackerFlowTest.scala @@ -38,12 +38,10 @@ import org.scalatest.concurrent.ScalaFutures import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AsyncWordSpec -import scala.annotation.nowarn import scala.concurrent.duration.DurationLong import scala.concurrent.{Future, Promise} import scala.util.{Failure, Success, Try} -@nowarn("msg=deprecated") class CommandTrackerFlowTest extends AsyncWordSpec with Matchers diff --git a/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/ConfigProvider.scala b/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/ConfigProvider.scala index 3d2b8cf1a4a3..e4afa4330bc1 100644 --- a/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/ConfigProvider.scala +++ b/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/ConfigProvider.scala @@ -16,10 +16,9 @@ import com.daml.platform.indexer.{IndexerConfig, IndexerStartupMode} import io.grpc.ServerInterceptor import scopt.OptionParser -import scala.annotation.{nowarn, unused} +import scala.annotation.unused import scala.concurrent.duration.FiniteDuration -@nowarn("msg=parameter value config .* is never used") // possibly used in overrides trait ConfigProvider[ExtraConfig] { val defaultExtraConfig: ExtraConfig diff --git a/ledger/participant-state/kvutils/src/test/suite/scala/com/daml/ledger/participant/state/kvutils/committer/transaction/TransactionCommitterSpec.scala b/ledger/participant-state/kvutils/src/test/suite/scala/com/daml/ledger/participant/state/kvutils/committer/transaction/TransactionCommitterSpec.scala index 1dfe44e91943..7ce89e3c7699 100644 --- a/ledger/participant-state/kvutils/src/test/suite/scala/com/daml/ledger/participant/state/kvutils/committer/transaction/TransactionCommitterSpec.scala +++ b/ledger/participant-state/kvutils/src/test/suite/scala/com/daml/ledger/participant/state/kvutils/committer/transaction/TransactionCommitterSpec.scala @@ -35,10 +35,8 @@ import org.scalatest.OptionValues import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec -import scala.annotation.nowarn import scala.jdk.CollectionConverters._ -@nowarn("msg=deprecated") class TransactionCommitterSpec extends AnyWordSpec with Matchers diff --git a/ledger/sandbox-classic/src/main/scala/platform/sandbox/stores/ledger/inmemory/InMemoryLedger.scala b/ledger/sandbox-classic/src/main/scala/platform/sandbox/stores/ledger/inmemory/InMemoryLedger.scala deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/ledger/sandbox-classic/src/main/scala/platform/sandbox/stores/ledger/inmemory/LedgerEntries.scala b/ledger/sandbox-classic/src/main/scala/platform/sandbox/stores/ledger/inmemory/LedgerEntries.scala deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/libs-scala/nameof/src/test/suite/scala/com/digitalasset/logging/NameOfSpec.scala b/libs-scala/nameof/src/test/suite/scala/com/digitalasset/logging/NameOfSpec.scala index e71389407b1d..4dbffd2164b1 100644 --- a/libs-scala/nameof/src/test/suite/scala/com/digitalasset/logging/NameOfSpec.scala +++ b/libs-scala/nameof/src/test/suite/scala/com/digitalasset/logging/NameOfSpec.scala @@ -7,13 +7,10 @@ import com.daml.nameof.NameOf.qualifiedNameOfCurrentFunc import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers -import scala.annotation.nowarn - final class NameOfSpec extends AnyFlatSpec with Matchers { behavior of "NameOf" - @nowarn() case class Ham() { def ham(): String = qualifiedNameOfCurrentFunc } diff --git a/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/Runner.scala b/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/Runner.scala index f02fc0f881ee..e16f7aefa280 100644 --- a/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/Runner.scala +++ b/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/Runner.scala @@ -55,7 +55,7 @@ import scalaz.{-\/, Functor, \/, \/-} import java.time.Instant import java.util.UUID -import scala.annotation.{nowarn, tailrec} +import scala.annotation.tailrec import scala.concurrent.duration.{FiniteDuration, _} import scala.concurrent.{ExecutionContext, Future} @@ -77,7 +77,6 @@ final case class Trigger( // Whether the trigger supports readAs claims (SDK 1.18 and newer) or not. hasReadAs: Boolean, ) { - @nowarn("msg=parameter value label .* is never used") // Proxy only private[trigger] final class withLoggingContext[P] private ( label: label[Trigger with P], kvs: Seq[LoggingEntry],