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
This commit is contained in:
Brad Fitzpatrick 2013-03-11 14:16:55 -07:00
parent 5f91a62a3c
commit e15c0ac693
32 changed files with 1 additions and 39 deletions

View file

@ -723,7 +723,6 @@ func (w *Walker) varValueType(vi interface{}) (string, error) {
default:
return "", fmt.Errorf("unknown const value type %T", vi)
}
panic("unreachable")
}
// resolveName finds a top-level node named name and returns the node