]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove unused getOSRev on openbsd
authorTobias Klauser <tklauser@distanz.ch>
Thu, 2 Nov 2023 09:29:29 +0000 (10:29 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 2 Nov 2023 19:37:20 +0000 (19:37 +0000)
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>
src/runtime/os_openbsd.go

index c3204ec38126aeca115fa4b7ee106352caf3d08a..f0d453b34f5f64433ea1ad37c150aa5a90e0ae69 100644 (file)
@@ -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) {
 }