diff options
Diffstat (limited to 'libgo/go/net/parse.go')
-rw-r--r-- | libgo/go/net/parse.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libgo/go/net/parse.go b/libgo/go/net/parse.go index 605f311..2bc0db4 100644 --- a/libgo/go/net/parse.go +++ b/libgo/go/net/parse.go @@ -192,16 +192,6 @@ func count(s string, b byte) int { return n } -// Returns the prefix of s up to but not including the character c -func prefixBefore(s string, c byte) string { - for i, v := range s { - if v == int(c) { - return s[0:i] - } - } - return s -} - // Index of rightmost occurrence of b in s. func last(s string, b byte) int { i := len(s) |