From: qmuntal Date: Wed, 5 Apr 2023 07:28:49 +0000 (+0200) Subject: runtime: remove unused dynamically imported Sleep X-Git-Tag: go1.21rc1~1032 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3202dafd4a4e9fb994fc2259f396cfeeb25c28ba;p=gostls13.git runtime: remove unused dynamically imported Sleep Sleep is not used, it can be removed. Change-Id: I237c966eb9b4e91127091d78f0b86725139c77a7 Reviewed-on: https://go-review.googlesource.com/c/go/+/482435 Run-TryBot: Quim Muntal Auto-Submit: Quim Muntal TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Reviewed-by: Michael Knyszek --- diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go index 40e7aade1e..41f8f77848 100644 --- a/src/runtime/os_windows.go +++ b/src/runtime/os_windows.go @@ -49,7 +49,6 @@ const ( //go:cgo_import_dynamic runtime._SetThreadPriority SetThreadPriority%2 "kernel32.dll" //go:cgo_import_dynamic runtime._SetUnhandledExceptionFilter SetUnhandledExceptionFilter%1 "kernel32.dll" //go:cgo_import_dynamic runtime._SetWaitableTimer SetWaitableTimer%6 "kernel32.dll" -//go:cgo_import_dynamic runtime._Sleep Sleep%1 "kernel32.dll" //go:cgo_import_dynamic runtime._SuspendThread SuspendThread%1 "kernel32.dll" //go:cgo_import_dynamic runtime._SwitchToThread SwitchToThread%0 "kernel32.dll" //go:cgo_import_dynamic runtime._TlsAlloc TlsAlloc%0 "kernel32.dll" @@ -103,7 +102,6 @@ var ( _SetThreadPriority, _SetUnhandledExceptionFilter, _SetWaitableTimer, - _Sleep, _SuspendThread, _SwitchToThread, _TlsAlloc,