From d76df065a1437afed8f44ea659c9d7a67a4ea0eb Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 26 Sep 2022 21:09:51 +0200 Subject: [PATCH] rm unused `dump` function for `KeystoresAndSlashingProtection` (#4170) In `eth2_rest_serialization` there was a `dump` function for `KeystoresAndSlashingProtection` that does not seem to be used. Removes that unused function. --- beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim index 403d2d377..4597b4e5e 100644 --- a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim +++ b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim @@ -2165,13 +2165,6 @@ proc readValue*(reader: var JsonReader[RestJson], value = RestActivityItem(index: index.get(), epoch: epoch.get(), active: active.get()) -proc dump*(value: KeystoresAndSlashingProtection): string {. - raises: [IOError, SerializationError, Defect].} = - var stream = memoryOutput() - var writer = JsonWriter[RestJson].init(stream) - writer.writeValue(value) - stream.getOutput(string) - proc writeValue*(writer: var JsonWriter[RestJson], value: HeadChangeInfoObject) {. raises: [IOError, Defect].} =