From 77fd7941f98b04ac0048a3c7014adacb08608693 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 18 Apr 2016 18:39:01 +0200 Subject: [PATCH] Minor: remove a utility method that's used only once from WireTransaction --- core/src/main/kotlin/core/Transactions.kt | 5 ----- src/test/kotlin/core/testutils/TestUtils.kt | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/kotlin/core/Transactions.kt b/core/src/main/kotlin/core/Transactions.kt index d1da1ac2cf..674d65947a 100644 --- a/core/src/main/kotlin/core/Transactions.kt +++ b/core/src/main/kotlin/core/Transactions.kt @@ -58,11 +58,6 @@ data class WireTransaction(val inputs: List, } } - /** Serialises and returns this transaction as a [SignedTransaction] with no signatures attached. */ - fun toSignedTransaction(withSigs: List): SignedTransaction { - return SignedTransaction(serialized, withSigs) - } - /** Returns a [StateAndRef] for the given output index. */ @Suppress("UNCHECKED_CAST") fun outRef(index: Int): StateAndRef { diff --git a/src/test/kotlin/core/testutils/TestUtils.kt b/src/test/kotlin/core/testutils/TestUtils.kt index 78ddfbe377..2ec2e02af7 100644 --- a/src/test/kotlin/core/testutils/TestUtils.kt +++ b/src/test/kotlin/core/testutils/TestUtils.kt @@ -351,7 +351,7 @@ class TransactionGroupDSL(private val stateType: Class) { allPubKeys -= key.public } } - wtx.toSignedTransaction(sigs) + SignedTransaction(bits, sigs) } } }