aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stmtlines_test.go
diff options
context:
space:
mode:
authorYury Smolsky <yury@smolsky.by>2018-07-28 00:29:38 +0300
committerBrad Fitzpatrick <bradfitz@golang.org>2018-07-31 15:42:33 +0000
commit0b7d87e6f9b61ecc950e2c59cf495f41cffc1ce4 (patch)
tree1cca6205cf028abd655547df7748d131fed3b94e /src/cmd/compile/internal/ssa/stmtlines_test.go
parentaf29e98390036e1f260fe50dc18ffcf178f1f29d (diff)
downloadgo-0b7d87e6f9b61ecc950e2c59cf495f41cffc1ce4.tar.gz
go-0b7d87e6f9b61ecc950e2c59cf495f41cffc1ce4.zip
cmd/compile: remove dead code
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>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stmtlines_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/stmtlines_test.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/cmd/compile/internal/ssa/stmtlines_test.go b/src/cmd/compile/internal/ssa/stmtlines_test.go
index 443b5f9f56..1081f83f6d 100644
--- a/src/cmd/compile/internal/ssa/stmtlines_test.go
+++ b/src/cmd/compile/internal/ssa/stmtlines_test.go
@@ -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")