]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: removed dead code
authorStefan Nilsson <snilsson@nada.kth.se>
Tue, 21 Dec 2010 21:43:35 +0000 (08:43 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 21 Dec 2010 21:43:35 +0000 (08:43 +1100)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/3779043

src/pkg/bufio/bufio.go

index fc4127a9402b16f04804a2c766fd8268646cc543..c13456a6326b78ec9c3200d932cba7808d551578 100644 (file)
@@ -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