From f31a030e90d50ac7245bbae77f5598ad99411b0d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 2 Nov 2023 10:29:29 +0100 Subject: [PATCH] runtime: remove unused getOSRev on openbsd It's unused since CL 538458. Change-Id: Ic8d30b0fb54f3f1d723626c5db56fbf4cf181dea Reviewed-on: https://go-review.googlesource.com/c/go/+/539155 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Reviewed-by: Joel Sing Auto-Submit: Tobias Klauser TryBot-Result: Gopher Robot Run-TryBot: Tobias Klauser Reviewed-by: Bryan Mills --- src/runtime/os_openbsd.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go index c3204ec381..f0d453b34f 100644 --- a/src/runtime/os_openbsd.go +++ b/src/runtime/os_openbsd.go @@ -32,8 +32,7 @@ var sigset_all = ^sigset(0) // From OpenBSD's const ( - _CTL_KERN = 1 - _KERN_OSREV = 3 + _CTL_KERN = 1 _CTL_HW = 6 _HW_NCPU = 3 @@ -86,13 +85,6 @@ func getPageSize() uintptr { return 0 } -func getOSRev() int { - if osrev, ok := sysctlInt([]uint32{_CTL_KERN, _KERN_OSREV}); ok { - return int(osrev) - } - return 0 -} - //go:nosplit func semacreate(mp *m) { } -- 2.48.1