Skip to content

Commit c3533d7

Browse files
Yury Smolskymvdan
Yury Smolsky
authored andcommitted
cmd/cover: remove unused global var and the unquote function
Change-Id: I52a39f2d8f1a296f23624e3ec577d9ad1b8302f1 Reviewed-on: https://go-review.googlesource.com/126555 Run-TryBot: Yury Smolsky <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
1 parent 26d62b4 commit c3533d7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/cmd/cover/cover.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"log"
1717
"os"
1818
"sort"
19-
"strconv"
2019

2120
"cmd/internal/edit"
2221
"cmd/internal/objabi"
@@ -294,17 +293,6 @@ func (f *File) Visit(node ast.Node) ast.Visitor {
294293
return f
295294
}
296295

297-
// unquote returns the unquoted string.
298-
func unquote(s string) string {
299-
t, err := strconv.Unquote(s)
300-
if err != nil {
301-
log.Fatalf("cover: improperly quoted string %q\n", s)
302-
}
303-
return t
304-
}
305-
306-
var slashslash = []byte("//")
307-
308296
func annotate(name string) {
309297
fset := token.NewFileSet()
310298
content, err := ioutil.ReadFile(name)

0 commit comments

Comments
 (0)