]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove dead code
authorYury Smolsky <yury@smolsky.by>
Fri, 27 Jul 2018 21:29:38 +0000 (00:29 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 31 Jul 2018 15:42:33 +0000 (15:42 +0000)
This struct, global var and method are not used anywhere.

Change-Id: I83d9e93041a46904064d0fa88ab655a50149c747
Reviewed-on: https://go-review.googlesource.com/126397
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/stmtlines_test.go

index 443b5f9f569d5138a5cf771c7e820863daaa9900..1081f83f6d278d9feb20819fd9e97fd1b6d0fd62 100644 (file)
@@ -39,22 +39,6 @@ type Line struct {
        Line int
 }
 
-type File struct {
-       lines []string
-}
-
-var fileCache = map[string]*File{}
-
-func (f *File) Get(lineno int) (string, bool) {
-       if f == nil {
-               return "", false
-       }
-       if lineno-1 < 0 || lineno-1 >= len(f.lines) {
-               return "", false
-       }
-       return f.lines[lineno-1], true
-}
-
 func TestStmtLines(t *testing.T) {
        if runtime.GOOS == "plan9" {
                t.Skip("skipping on plan9; no DWARF symbol table in executables")