Remove ssz.loadFile

This commit is contained in:
Zahary Karadjov 2020-05-28 15:58:01 +03:00 committed by zah
parent 1fd87a2255
commit 0493737d7a

View File

@ -65,12 +65,6 @@ serializationFormat SSZ,
Writer = SszWriter,
PreferedOutput = seq[byte]
template loadFile*(Format: type SSZ,
file: string,
RecordType: distinct type): auto =
let bytes = readFile(file)
decode(SSZ, toOpenArrayByte(string bytes, 0, bytes.high), RecordType)
template bytes(x: BitSeq): untyped =
seq[byte](x)