Commit 8cfd9e06 authored by Stefan Nilsson's avatar Stefan Nilsson Committed by Andrew Gerrand

bufio: removed dead code

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/3779043
parent d3866ddc
......@@ -148,7 +148,6 @@ func (b *Reader) Read(p []byte) (n int, err os.Error) {
b.lastByte = int(p[n-1])
b.lastRuneSize = -1
}
p = p[n:]
return n, b.err
}
b.fill()
......@@ -161,7 +160,6 @@ func (b *Reader) Read(p []byte) (n int, err os.Error) {
n = b.w - b.r
}
copy(p[0:n], b.buf[b.r:])
p = p[n:]
b.r += n
b.lastByte = int(b.buf[b.r-1])
b.lastRuneSize = -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment