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.
This commit is contained in:
Etan Kissling 2022-09-26 21:09:51 +02:00 committed by GitHub
parent 321c872790
commit d76df065a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -2165,13 +2165,6 @@ proc readValue*(reader: var JsonReader[RestJson],
value = RestActivityItem(index: index.get(), epoch: epoch.get(), value = RestActivityItem(index: index.get(), epoch: epoch.get(),
active: active.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], proc writeValue*(writer: var JsonWriter[RestJson],
value: HeadChangeInfoObject) {. value: HeadChangeInfoObject) {.
raises: [IOError, Defect].} = raises: [IOError, Defect].} =