From ae184ba5295fb785e93b52c570e89bd278e9e554 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 15 Mar 2022 10:19:26 -0400 Subject: [PATCH] remove ToTxs unsued function --- types/tx.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/types/tx.go b/types/tx.go index 5c9006822..0e7c6a046 100644 --- a/types/tx.go +++ b/types/tx.go @@ -84,16 +84,6 @@ func (txs Txs) ToSliceOfBytes() [][]byte { return txBzs } -// ToTxs converts a raw slice of byte slices into a Txs type. -// TODO This function is to disappear when TxRecord is introduced -func ToTxs(txs [][]byte) Txs { - txBzs := make(Txs, len(txs)) - for i := 0; i < len(txs); i++ { - txBzs[i] = txs[i] - } - return txBzs -} - // TxRecordSet contains indexes into an underlying set of transactions. // These indexes are useful for validating and working with a list of TxRecords // from the PrepareProposal response.