aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2023-11-02 10:29:29 +0100
committerGopher Robot <gobot@golang.org>2023-11-02 19:37:20 +0000
commitf31a030e90d50ac7245bbae77f5598ad99411b0d (patch)
treea0ad373ab0dcdcc0d4b37c28e5104f81d1d05520 /src
parent2ffe600dfafcae748e98c9676283c7e0e1bbc667 (diff)
downloadgo-f31a030e90d50ac7245bbae77f5598ad99411b0d.tar.xz
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Joel Sing <joel@sing.id.au> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/os_openbsd.go10
1 files changed, 1 insertions, 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 <sys/sysctl.h>
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) {
}