From f0d74d08598513681aed0befadf18547bfe9f4ee Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Thu, 16 Jun 2016 12:15:47 +0100 Subject: [PATCH] core: Removed unused deprecated test functions --- .../kotlin/com/r3corda/core/testing/TestUtils.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/main/kotlin/com/r3corda/core/testing/TestUtils.kt b/core/src/main/kotlin/com/r3corda/core/testing/TestUtils.kt index d31ae905f2..1fadd2bdf2 100644 --- a/core/src/main/kotlin/com/r3corda/core/testing/TestUtils.kt +++ b/core/src/main/kotlin/com/r3corda/core/testing/TestUtils.kt @@ -270,14 +270,6 @@ class TransactionGroupDSL(private val stateType: Class) { } rootTxns.add(wtx) } - - @Deprecated("Does not nest ", level = DeprecationLevel.ERROR) - fun roots(body: Roots.() -> Unit) { - } - - @Deprecated("Use the vararg form of transaction inside roots", level = DeprecationLevel.ERROR) - fun transaction(body: WireTransactionDSL.() -> Unit) { - } } fun roots(body: Roots.() -> Unit) = Roots().apply { body() } @@ -298,10 +290,6 @@ class TransactionGroupDSL(private val stateType: Class) { fun labelForTransaction(tx: WireTransaction): String? = txnToLabelMap[tx.id] fun labelForTransaction(tx: LedgerTransaction): String? = txnToLabelMap[tx.id] - @Deprecated("Does not nest ", level = DeprecationLevel.ERROR) - fun transactionGroup(body: TransactionGroupDSL.() -> Unit) { - } - fun toTransactionGroup() = TransactionGroup( txns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet(), rootTxns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet()