Remove unnecessary code

This commit is contained in:
Masaaki Goshima 2021-05-07 23:52:24 +09:00
parent 23081eadad
commit ab068b0858
1 changed files with 0 additions and 3 deletions

View File

@ -82,9 +82,6 @@ func (s *stream) readBuf() []byte {
copy(s.buf, remainBuf)
}
remainLen := s.length - s.cursor
if remainLen > 0 {
remainLen-- // last char is nul
}
return s.buf[s.cursor+remainLen:]
}