]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: eliminate unused Sig.offset field
authorMatthew Dempsky <mdempsky@google.com>
Fri, 6 Apr 2018 05:46:36 +0000 (22:46 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 6 Apr 2018 06:03:38 +0000 (06:03 +0000)
Change-Id: If498d1fc6e8c0c4e8cf7ed38c4997adf05e003a6
Reviewed-on: https://go-review.googlesource.com/105043
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/compile/internal/gc/reflect.go

index f2d096116f280eab0dc38d4fdd072d12d019501a..bd837b140eedb338ed4c22dab7fc192cefce2b47 100644 (file)
@@ -42,13 +42,12 @@ var (
 )
 
 type Sig struct {
-       name   string
-       pkg    *types.Pkg
-       isym   *types.Sym
-       tsym   *types.Sym
-       type_  *types.Type
-       mtype  *types.Type
-       offset int32
+       name  string
+       pkg   *types.Pkg
+       isym  *types.Sym
+       tsym  *types.Sym
+       type_ *types.Type
+       mtype *types.Type
 }
 
 // siglt sorts method signatures by name with exported methods first,
@@ -473,7 +472,6 @@ func imethods(t *types.Type) []*Sig {
                }
 
                sig.mtype = f.Type
-               sig.offset = 0
                sig.type_ = methodfunc(f.Type, nil)
 
                if n := len(methods); n > 0 {