diff --git a/src/cmd/link/internal/ld/dwarf.go b/src/cmd/link/internal/ld/dwarf.go index 3c3f0e5b856..2f19c3eaa2f 100644 --- a/src/cmd/link/internal/ld/dwarf.go +++ b/src/cmd/link/internal/ld/dwarf.go @@ -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()