aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/encoding/binary/varint.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-03-11 14:16:55 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2013-03-11 14:16:55 -0700
commite15c0ac693dec3379306f5c0942812f12a37e736 (patch)
tree26209c7ba3b9685d91ffcc2536e7f1896fa63b90 /src/pkg/encoding/binary/varint.go
parent5f91a62a3cc8da7cccb4e0c74e69321e00c8e590 (diff)
downloadgo-e15c0ac693dec3379306f5c0942812f12a37e736.tar.xz
all: remove now-unnecessary unreachable panics
Take advantage of the new terminating statement rule. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/7712044
Diffstat (limited to 'src/pkg/encoding/binary/varint.go')
-rw-r--r--src/pkg/encoding/binary/varint.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pkg/encoding/binary/varint.go b/src/pkg/encoding/binary/varint.go
index 7035529f27..3a2dfa3c74 100644
--- a/src/pkg/encoding/binary/varint.go
+++ b/src/pkg/encoding/binary/varint.go
@@ -120,7 +120,6 @@ func ReadUvarint(r io.ByteReader) (uint64, error) {
x |= uint64(b&0x7f) << s
s += 7
}
- panic("unreachable")
}
// ReadVarint reads an encoded signed integer from r and returns it as an int64.