From: Tobias Klauser Date: Mon, 20 Jan 2020 09:23:41 +0000 (+0100) Subject: runtime: remove unused _F_SETFL const on linux X-Git-Tag: go1.15beta1~1111 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=90c71cec5bca21e8c7e984fffbd0ad62d7067f5d;p=gostls13.git runtime: remove unused _F_SETFL const on linux This constant is only used on libc-based platforms (aix, darwin, solaris). Change-Id: Ic57d1fe3b1501c5b552eddb9aba11f1e02510082 Reviewed-on: https://go-review.googlesource.com/c/go/+/220421 Run-TryBot: Tobias Klauser Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/defs_linux_386.go b/src/runtime/defs_linux_386.go index ba5ef18e02..f4db8cf927 100644 --- a/src/runtime/defs_linux_386.go +++ b/src/runtime/defs_linux_386.go @@ -95,7 +95,6 @@ const ( _EPOLL_CTL_MOD = 0x3 _AF_UNIX = 0x1 - _F_SETFL = 0x4 _SOCK_DGRAM = 0x2 ) diff --git a/src/runtime/defs_linux_amd64.go b/src/runtime/defs_linux_amd64.go index 8144354d5a..8480d85219 100644 --- a/src/runtime/defs_linux_amd64.go +++ b/src/runtime/defs_linux_amd64.go @@ -91,7 +91,6 @@ const ( _EPOLL_CTL_MOD = 0x3 _AF_UNIX = 0x1 - _F_SETFL = 0x4 _SOCK_DGRAM = 0x2 ) diff --git a/src/runtime/defs_linux_arm.go b/src/runtime/defs_linux_arm.go index d24e0a9d6e..ea29fd9d98 100644 --- a/src/runtime/defs_linux_arm.go +++ b/src/runtime/defs_linux_arm.go @@ -87,7 +87,6 @@ const ( _EPOLL_CTL_MOD = 0x3 _AF_UNIX = 0x1 - _F_SETFL = 0x4 _SOCK_DGRAM = 0x2 ) diff --git a/src/runtime/defs_linux_arm64.go b/src/runtime/defs_linux_arm64.go index 182887d8d5..0690cd35b2 100644 --- a/src/runtime/defs_linux_arm64.go +++ b/src/runtime/defs_linux_arm64.go @@ -91,7 +91,6 @@ const ( _EPOLL_CTL_MOD = 0x3 _AF_UNIX = 0x1 - _F_SETFL = 0x4 _SOCK_DGRAM = 0x2 )