From: Matthew Dempsky Date: Fri, 6 Apr 2018 05:46:36 +0000 (-0700) Subject: cmd/compile: eliminate unused Sig.offset field X-Git-Tag: go1.11beta1~947 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fd9d2898bd3983baa94fd2100602b06d8c487466;p=gostls13.git cmd/compile: eliminate unused Sig.offset field Change-Id: If498d1fc6e8c0c4e8cf7ed38c4997adf05e003a6 Reviewed-on: https://go-review.googlesource.com/105043 Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot Reviewed-by: Dave Cheney --- diff --git a/src/cmd/compile/internal/gc/reflect.go b/src/cmd/compile/internal/gc/reflect.go index f2d096116f..bd837b140e 100644 --- a/src/cmd/compile/internal/gc/reflect.go +++ b/src/cmd/compile/internal/gc/reflect.go @@ -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 {