mirror of
https://github.com/golang/go
synced 2024-11-18 03:04:45 -07:00
cmd/compile: remove toolstash workaround in bexport.go
Change-Id: Ie4facdcab4b35cf7d350c4b8fa06a3c5a0c6caeb Reviewed-on: https://go-review.googlesource.com/108875 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
7759b32a62
commit
545ef11037
@ -1002,13 +1002,7 @@ func parName(f *types.Field, numbered bool) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// The "s != f.Sym" check here is unnecessary and causes blank
|
if s.Name == "_" {
|
||||||
// input/receiver parameters to receive vargen numbers
|
|
||||||
// below. However, this is consistent with the logic it
|
|
||||||
// replaces, so we keep it for now to appease toolstash-check.
|
|
||||||
//
|
|
||||||
// TODO(mdempsky): Simplify to just "if s.Name == "_"".
|
|
||||||
if s != f.Sym && s.Name == "_" {
|
|
||||||
return "_"
|
return "_"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user