aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/string.go')
-rw-r--r--src/runtime/string.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go
index 81d1b80e56..d45888b7a8 100644
--- a/src/runtime/string.go
+++ b/src/runtime/string.go
@@ -341,14 +341,6 @@ func gostringn(p *byte, l int) string {
return s
}
-func hasPrefix(s, prefix string) bool {
- return len(s) >= len(prefix) && s[:len(prefix)] == prefix
-}
-
-func hasSuffix(s, suffix string) bool {
- return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix
-}
-
const (
maxUint64 = ^uint64(0)
maxInt64 = int64(maxUint64 >> 1)