diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/types/transaction.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index cc1793112..85b4c6119 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -97,15 +97,6 @@ func NewTransaction(nonce uint64, to common.Address, amount, gasLimit, gasPrice return &Transaction{data: d} } -func NewTransactionFromBytes(data []byte) *Transaction { - // TODO: remove this function if possible. callers would - // much better off decoding into transaction directly. - // it's not that hard. - tx := new(Transaction) - rlp.DecodeBytes(data, tx) - return tx -} - func (tx *Transaction) EncodeRLP(w io.Writer) error { return rlp.Encode(w, &tx.data) } |