Skip to content

Commit

Permalink
LF: Drop old depreated code (digital-asset#10251)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
remyhaemmerle-da authored Jul 13, 2021
1 parent de7a08f commit 6e8ec1d
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 331 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package engine

import java.nio.file.Path

import com.daml.lf.language.LanguageVersion
import com.daml.lf.transaction.ContractKeyUniquenessMode

/** The Engine configurations describes the versions of language and
Expand Down Expand Up @@ -53,30 +52,3 @@ final case class EngineConfig(
)

}

object EngineConfig {

/** Recommended production configuration.
* Allows the all stable versions of language.
*/
@deprecated("use LanguageVersion.StableVersions directly", since = "1.9.0")
def Stable: EngineConfig = new EngineConfig(
allowedLanguageVersions = LanguageVersion.StableVersions
)

/** Only allows language versions compatible with the legacy contract ID scheme.
*/
@deprecated("use LanguageVersion.LegacyVersions directly", since = "1.9.0")
def Legacy: EngineConfig = new EngineConfig(
allowedLanguageVersions = LanguageVersion.LegacyVersions
)

/** Development configuration, should not be used in PROD.
* Allows all language versions
*/
@deprecated("use LanguageVersion.DevVersions directly", since = "1.9.0")
def Dev: EngineConfig = new EngineConfig(
allowedLanguageVersions = LanguageVersion.DevVersions
)

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.daml.lf.transaction.SubmittedTransaction
import com.daml.lf.transaction.Transaction.Transaction
import com.daml.lf.transaction.{Node => N, NodeId, Transaction => Tx}
import com.daml.lf.value.Value
import com.daml.lf.value.Value.{NodeId => _, _}
import com.daml.lf.value.Value._
import com.daml.lf.command._
import org.scalameter
import org.scalameter.Quantity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ object PrimType {
final val Unit = PrimTypeUnit
final val Optional = PrimTypeOptional
final val TextMap = PrimTypeTextMap
@deprecated("Use TextMap", since = "0.13.38")
final val Map = TextMap
final val GenMap = PrimTypeGenMap
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import com.daml.lf.data.Ref
// Types to be used internally
package object iface {

@deprecated("Use TextMap", since = "0.13.38")
val PrimTypeMap = PrimTypeTextMap

type FieldWithType = (Ref.Name, Type)

private[iface] def lfprintln(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.daml.lf.transaction.{
Transaction => Tx,
}
import com.daml.lf.value.Value
import Value.{NodeId => _, _}
import Value._

import scala.annotation.tailrec
import scala.collection.compat._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.typelevel.paiges._
import org.typelevel.paiges.Doc._
import com.daml.lf.ledger.EventId
import com.daml.lf.value.Value
import Value.{NodeId => _, _}
import Value._
import com.daml.lf.transaction.Node._
import com.daml.lf.ledger._
import com.daml.lf.data.Ref._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ object LanguageMajorVersion {

val All: List[LanguageMajorVersion] = List(V1)

@deprecated("use All instead", since = "100.12.12")
val supported: List[LanguageMajorVersion] = All

implicit val Ordering: scala.Ordering[LanguageMajorVersion] =
scala.Ordering.by(All.zipWithIndex.toMap)
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import com.daml.lf.transaction.{
Transaction => Tx,
}
import com.daml.lf.transaction.test.TransactionBuilder
import com.daml.lf.value.Value.{NodeId => _, _}
import com.daml.lf.value.Value._
import org.scalacheck.{Arbitrary, Gen}
import Arbitrary.arbitrary

Expand Down Expand Up @@ -267,9 +267,6 @@ object ValueGenerators {

val genNonEmptyParties: Gen[Set[Party]] = ^(party, genMaybeEmptyParties)((hd, tl) => tl + hd)

@deprecated("use genNonEmptyParties instead", since = "100.11.17")
private[lf] def genParties = genNonEmptyParties

val contractInstanceGen: Gen[ContractInst[Value[Value.ContractId]]] = {
for {
template <- idGen
Expand Down Expand Up @@ -433,9 +430,6 @@ object ValueGenerators {
version,
)

@deprecated("use danglingRefExerciseNodeGen instead", since = "100.11.17")
private[lf] def exerciseNodeGen = danglingRefExerciseNodeGen

/** Makes nodes with the problems listed under `malformedCreateNodeGen`, and
* `malformedGenTransaction` should they be incorporated into a transaction.
*/
Expand Down Expand Up @@ -487,9 +481,6 @@ object ValueGenerators {
)
}

@deprecated("use danglingRefGenNode instead", since = "100.11.17")
private[lf] def genNode = danglingRefGenNode

/** Aside from the invariants failed as listed under `malformedCreateNodeGen`,
* resulting transactions may be malformed in several other ways:
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ object Node {
override val version: TransactionVersion,
) extends GenActionNode[Nid, Cid]
with ActionNodeInfo.Exercise {
@deprecated("use actingParties instead", since = "1.1.2")
private[daml] def controllers: actingParties.type = actingParties

override private[lf] def updateVersion(
version: TransactionVersion
Expand Down Expand Up @@ -344,10 +342,6 @@ object Node {

override protected def self: this.type = this

@deprecated("Use resolveRelCid/ensureNoCid/ensureNoRelCid", since = "0.13.52")
def mapValue[Val1](f: Val => Val1): KeyWithMaintainers[Val1] =
KeyWithMaintainers.map1(f)(this)

def foreach1(f: Val => Unit): Unit =
KeyWithMaintainers.foreach1(f)(this)
}
Expand Down
Loading

0 comments on commit 6e8ec1d

Please sign in to comment.