From 3f72bb8df5605b4d3d399e382f136024da240227 Mon Sep 17 00:00:00 2001 From: Geod24 Date: Thu, 10 Jun 2021 14:29:23 +0900 Subject: [PATCH] Transaction: Remove serialize method It's not doing anything that differs from the default, save for the 'assert', which is not the place to do it. --- source/agora/consensus/data/Transaction.d | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/source/agora/consensus/data/Transaction.d b/source/agora/consensus/data/Transaction.d index ba5cfb40a25..67dee56c381 100644 --- a/source/agora/consensus/data/Transaction.d +++ b/source/agora/consensus/data/Transaction.d @@ -111,31 +111,6 @@ public struct Transaction return hashFull(this).opCmp(hashFull(other)); } - /*************************************************************************** - - Transactions Serialization - - Params: - dg = Serialize function - - ***************************************************************************/ - - public void serialize (scope SerializeDg dg) const - { - serializePart(this.inputs.length, dg); - foreach (const ref input; this.inputs) - serializePart(input, dg); - - serializePart(this.outputs.length, dg); - assert(this.outputs.isSorted!((a, b) => a < b)); - foreach (const ref output; this.outputs) - serializePart(output, dg); - - serializePart(payload, dg); - - serializePart(this.lock_height, dg); - } - pure nothrow @nogc: /// A `Freeze` transaction is one that has one or more `Freeze` outputs