Skip to content

Commit d94fe6c

Browse files
authored
Removed functions for command line mangling (#400)
1 parent 94e7e7a commit d94fe6c

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

Diff for: 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-
}

Diff for: legacy/builder/test/unquote_test.go

-54
This file was deleted.

0 commit comments

Comments
 (0)