From b1650858366c2a1eaa53d32fe90022941aa556f2 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Fri, 2 Apr 2021 06:58:13 -0400 Subject: [PATCH] cmd/link: remove an unused function from linker dwarf gen Remove a no-longer-used function. Change-Id: Iad383a9d158d31d4c8b65dd39b71849b44c6b52e Reviewed-on: https://go-review.googlesource.com/c/go/+/306829 Trust: Than McIntosh Run-TryBot: Than McIntosh TryBot-Result: Go Bot Reviewed-by: Jeremy Faller --- src/cmd/link/internal/ld/dwarf.go | 6 ------ 1 file changed, 6 deletions(-) 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()