Skip to content

Commit 4ffae15

Browse files
committed
Removed functions for command line mangling
1 parent 7e255e9 commit 4ffae15

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

legacy/builder/gohasissues/go_has_issues.go

-18
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ import (
3434
"os"
3535
"path/filepath"
3636
"sort"
37-
"strconv"
38-
"strings"
3937
)
4038

4139
func Walk(root string, walkFn filepath.WalkFunc) error {
@@ -127,19 +125,3 @@ func resolveSymlink(parentFolder string, info os.FileInfo) (os.FileInfo, error)
127125
func isSymlink(info os.FileInfo) bool {
128126
return info.Mode()&os.ModeSymlink != 0
129127
}
130-
131-
func Unquote(s string) (string, error) {
132-
if stringStartsEndsWith(s, "'") {
133-
s = s[1 : len(s)-1]
134-
}
135-
136-
if !stringStartsEndsWith(s, "\"") {
137-
return s, nil
138-
}
139-
140-
return strconv.Unquote(s)
141-
}
142-
143-
func stringStartsEndsWith(s string, c string) bool {
144-
return strings.HasPrefix(s, c) && strings.HasSuffix(s, c)
145-
}

0 commit comments

Comments
 (0)