From d2574e2adb658b46ea2d8e22b3195cc14da1affe Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 16 Sep 2014 10:22:15 -0400 Subject: runtime: remove duplicated Go constants The C header files are the single point of truth: every C enum constant Foo is available to Go as _Foo. Remove or redirect duplicate Go declarations so they cannot be out of sync. Eventually we will need to put constants in Go, but for now having them be out of sync with C is too risky. These predate the build support for auto-generating Go constants from the C definitions. LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/141510043 --- src/runtime/os_linux.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/os_linux.go') diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index a6799cd414..41123ad570 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -15,5 +15,3 @@ func rtsigprocmask(sig int32, new, old unsafe.Pointer, size int32) func getrlimit(kind int32, limit unsafe.Pointer) int32 func raise(sig int32) func sched_getaffinity(pid, len uintptr, buf *uintptr) int32 - -const stackSystem = 0 -- cgit v1.3