summaryrefslogtreecommitdiff
path: root/vendor/github.com/flopp/go-staticmaps/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/flopp/go-staticmaps/util.go')
-rw-r--r--vendor/github.com/flopp/go-staticmaps/util.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/vendor/github.com/flopp/go-staticmaps/util.go b/vendor/github.com/flopp/go-staticmaps/util.go
deleted file mode 100644
index 3f5d4ad..0000000
--- a/vendor/github.com/flopp/go-staticmaps/util.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2016 Florian Pigorsch. All rights reserved.
-//
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
-
-package sm
-
-import (
- "strings"
-)
-
-// hasPrefix checks if 's' has prefix 'prefix'; returns 'true' and the remainder on success, and 'false', 's' otherwise.
-func hasPrefix(s string, prefix string) (bool, string) {
- if strings.HasPrefix(s, prefix) {
- return true, strings.TrimPrefix(s, prefix)
- }
- return false, s
-}