]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: remove unused windows function
authorKeith Randall <khr@golang.org>
Tue, 8 Apr 2025 22:16:50 +0000 (15:16 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 9 Apr 2025 00:13:04 +0000 (17:13 -0700)
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 <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
src/syscall/zsyscall_windows.go

index e480253992a689f5a3e8ed1b4bc6687330c487d9..93ef850975f8a4516b5f06584f0d18c397bda7d3 100644 (file)
@@ -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)