]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: remove vestigial Error type
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 25 Jan 2012 22:50:37 +0000 (14:50 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 25 Jan 2012 22:50:37 +0000 (14:50 -0800)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5573069

src/pkg/regexp/regexp.go

index ef94fa09b118e7fb640e5976ee76e3582828d124..7aebd3728a3dc5a9da5b1b6661dd52e3a85f96db 100644 (file)
@@ -66,13 +66,6 @@ import (
 
 var debug = false
 
-// Error is the local type for a parsing error.
-type Error string
-
-func (e Error) Error() string {
-       return string(e)
-}
-
 // Regexp is the representation of a compiled regular expression.
 // The public interface is entirely through methods.
 // A Regexp is safe for concurrent use by multiple goroutines.