From 0909bcd9e4acb01089d588d608d669d69710e50a Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 8 Apr 2025 15:16:50 -0700 Subject: [PATCH] syscall: remove unused windows function It's causing the dependency test to fail. Fixes #73274 Change-Id: I7d80ea4872e360c16ac3b77acf15fa2660d117b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/663975 Auto-Submit: Keith Randall LUCI-TryBot-Result: Go LUCI Auto-Submit: Quim Muntal Reviewed-by: Keith Randall Reviewed-by: Dmitri Shuralyov Reviewed-by: Quim Muntal --- src/syscall/zsyscall_windows.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/syscall/zsyscall_windows.go b/src/syscall/zsyscall_windows.go index e480253992..93ef850975 100644 --- a/src/syscall/zsyscall_windows.go +++ b/src/syscall/zsyscall_windows.go @@ -948,15 +948,6 @@ func LocalFree(hmem Handle) (handle Handle, err error) { return } -func localFree(hmem Handle) (handle Handle, err error) { - r0, _, e1 := Syscall(procLocalFree.Addr(), 1, uintptr(hmem), 0, 0) - handle = Handle(r0) - if handle != 0 { - err = errnoErr(e1) - } - return -} - func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) { r0, _, e1 := Syscall6(procMapViewOfFile.Addr(), 5, uintptr(handle), uintptr(access), uintptr(offsetHigh), uintptr(offsetLow), uintptr(length), 0) addr = uintptr(r0) -- 2.51.0