mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/cgo: remove unused code
Change-Id: I8d295ea32bf56adc42171947133f3e16a88664c6 Reviewed-on: https://go-review.googlesource.com/54911 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
ead6255ce3
commit
62f8494e1d
1 changed files with 0 additions and 4 deletions
|
|
@ -543,10 +543,6 @@ func (p *Package) loadDWARF(f *File, names []*Name) {
|
|||
|
||||
// Scan DWARF info for top-level TagVariable entries with AttrName __cgo__i.
|
||||
types := make([]dwarf.Type, len(names))
|
||||
nameToIndex := make(map[*Name]int)
|
||||
for i, n := range names {
|
||||
nameToIndex[n] = i
|
||||
}
|
||||
nameToRef := make(map[*Name]*Ref)
|
||||
for _, ref := range f.Ref {
|
||||
nameToRef[ref.Name] = ref
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue