cli/server: remove unused readBlock()

It became obsolete after 6f7284906a.
This commit is contained in:
Evgenii Stratonikov 2020-12-03 15:57:57 +03:00
parent 573d1d10c0
commit 66402923b9

View file

@ -295,17 +295,6 @@ func restoreDB(ctx *cli.Context) error {
return nil
}
// readBlock performs reading of block size and then bytes with the length equal to that size.
func readBlock(reader *io.BinReader) ([]byte, error) {
var size = reader.ReadU32LE()
bytes := make([]byte, size)
reader.ReadBytes(bytes)
if reader.Err != nil {
return nil, reader.Err
}
return bytes, nil
}
func startServer(ctx *cli.Context) error {
cfg, err := getConfigFromContext(ctx)
if err != nil {