Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
mydump: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng committed Dec 24, 2018
1 parent 5074af5 commit f2521f1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lightning/mydump/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ const (
tokName
)

func tryAppendTo(out *[]byte, tail []byte) {
if out == nil || len(tail) == 0 {
return
}
if len(*out) == 0 {
*out = tail
} else {
*out = append(*out, tail...)
}
}

func (parser *ChunkParser) readBlock() error {
n, err := io.ReadFull(parser.reader, parser.blockBuf)
switch err {
Expand Down

0 comments on commit f2521f1

Please sign in to comment.