]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove an unused function from linker dwarf gen
authorThan McIntosh <thanm@google.com>
Fri, 2 Apr 2021 10:58:13 +0000 (06:58 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 2 Apr 2021 13:30:18 +0000 (13:30 +0000)
Remove a no-longer-used function.

Change-Id: Iad383a9d158d31d4c8b65dd39b71849b44c6b52e
Reviewed-on: https://go-review.googlesource.com/c/go/+/306829
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/dwarf.go

index 3c3f0e5b856e9cd2617532771e78f14552513d12..2f19c3eaa2f93f0bbec3806e6adf735e06d87e48 100644 (file)
@@ -2290,12 +2290,6 @@ func getDwsectCUSize(sname string, pkgname string) uint64 {
        return dwsectCUSize[sname+"."+pkgname]
 }
 
-func saveDwsectCUSize(sname string, pkgname string, size uint64) {
-       dwsectCUSizeMu.Lock()
-       defer dwsectCUSizeMu.Unlock()
-       dwsectCUSize[sname+"."+pkgname] = size
-}
-
 func addDwsectCUSize(sname string, pkgname string, size uint64) {
        dwsectCUSizeMu.Lock()
        defer dwsectCUSizeMu.Unlock()