From 7bd632cbde54f592d0e093dcf6f592aeb7dc5ed8 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 9 Nov 2023 00:18:13 +0200 Subject: [PATCH] chore: Remove redundant build constraint (#1650) --- allocation_test.go | 1 - b2s_new.go | 1 - b2s_old.go | 1 - bytesconv_32.go | 1 - bytesconv_32_test.go | 1 - bytesconv_64.go | 1 - bytesconv_64_test.go | 1 - bytesconv_table_gen.go | 1 - client_unix_test.go | 1 - fasthttpadaptor/b2s_new.go | 1 - fasthttpadaptor/b2s_old.go | 1 - fuzzit/cookie/cookie_fuzz.go | 1 - fuzzit/request/request_fuzz.go | 1 - fuzzit/response/response_fuzz.go | 1 - fuzzit/url/url_fuzz.go | 1 - reuseport/reuseport.go | 1 - round2_32.go | 1 - round2_32_test.go | 1 - round2_64.go | 1 - round2_64_test.go | 1 - s2b_new.go | 1 - s2b_old.go | 1 - tcp.go | 1 - tcp_windows.go | 3 --- uri_unix.go | 1 - uri_windows.go | 3 --- uri_windows_test.go | 3 --- 27 files changed, 33 deletions(-) diff --git a/allocation_test.go b/allocation_test.go index 348fef149a..477665a3ba 100644 --- a/allocation_test.go +++ b/allocation_test.go @@ -1,5 +1,4 @@ //go:build !race -// +build !race package fasthttp diff --git a/b2s_new.go b/b2s_new.go index 2f7d6f7e62..a45222c196 100644 --- a/b2s_new.go +++ b/b2s_new.go @@ -1,5 +1,4 @@ //go:build go1.20 -// +build go1.20 package fasthttp diff --git a/b2s_old.go b/b2s_old.go index 6b9f799a06..f6e9466a9a 100644 --- a/b2s_old.go +++ b/b2s_old.go @@ -1,5 +1,4 @@ //go:build !go1.20 -// +build !go1.20 package fasthttp diff --git a/bytesconv_32.go b/bytesconv_32.go index b574883380..baa945953a 100644 --- a/bytesconv_32.go +++ b/bytesconv_32.go @@ -1,5 +1,4 @@ //go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x -// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x package fasthttp diff --git a/bytesconv_32_test.go b/bytesconv_32_test.go index 3f5d5ded8c..b954bbaabc 100644 --- a/bytesconv_32_test.go +++ b/bytesconv_32_test.go @@ -1,5 +1,4 @@ //go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x -// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x package fasthttp diff --git a/bytesconv_64.go b/bytesconv_64.go index 94d0ec684c..e7c01bba43 100644 --- a/bytesconv_64.go +++ b/bytesconv_64.go @@ -1,5 +1,4 @@ //go:build amd64 || arm64 || ppc64 || ppc64le || s390x -// +build amd64 arm64 ppc64 ppc64le s390x package fasthttp diff --git a/bytesconv_64_test.go b/bytesconv_64_test.go index 06898090a3..8eb5030ffa 100644 --- a/bytesconv_64_test.go +++ b/bytesconv_64_test.go @@ -1,5 +1,4 @@ //go:build amd64 || arm64 || ppc64 || ppc64le || s390x -// +build amd64 arm64 ppc64 ppc64le s390x package fasthttp diff --git a/bytesconv_table_gen.go b/bytesconv_table_gen.go index 40819bfcf1..c9231a2035 100644 --- a/bytesconv_table_gen.go +++ b/bytesconv_table_gen.go @@ -1,5 +1,4 @@ //go:build ignore -// +build ignore package main diff --git a/client_unix_test.go b/client_unix_test.go index 21f4ced331..0a49b13983 100644 --- a/client_unix_test.go +++ b/client_unix_test.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package fasthttp diff --git a/fasthttpadaptor/b2s_new.go b/fasthttpadaptor/b2s_new.go index 09ef72acb5..6246e30eff 100644 --- a/fasthttpadaptor/b2s_new.go +++ b/fasthttpadaptor/b2s_new.go @@ -1,5 +1,4 @@ //go:build go1.20 -// +build go1.20 package fasthttpadaptor diff --git a/fasthttpadaptor/b2s_old.go b/fasthttpadaptor/b2s_old.go index 08e2ac627a..a0251983ad 100644 --- a/fasthttpadaptor/b2s_old.go +++ b/fasthttpadaptor/b2s_old.go @@ -1,5 +1,4 @@ //go:build !go1.20 -// +build !go1.20 package fasthttpadaptor diff --git a/fuzzit/cookie/cookie_fuzz.go b/fuzzit/cookie/cookie_fuzz.go index a1cce1e2cd..929513fcb4 100644 --- a/fuzzit/cookie/cookie_fuzz.go +++ b/fuzzit/cookie/cookie_fuzz.go @@ -1,5 +1,4 @@ //go:build gofuzz -// +build gofuzz package fuzz diff --git a/fuzzit/request/request_fuzz.go b/fuzzit/request/request_fuzz.go index 93cf16d544..84b13e8101 100644 --- a/fuzzit/request/request_fuzz.go +++ b/fuzzit/request/request_fuzz.go @@ -1,5 +1,4 @@ //go:build gofuzz -// +build gofuzz package fuzz diff --git a/fuzzit/response/response_fuzz.go b/fuzzit/response/response_fuzz.go index 76bf54a26c..fe2a72779c 100644 --- a/fuzzit/response/response_fuzz.go +++ b/fuzzit/response/response_fuzz.go @@ -1,5 +1,4 @@ //go:build gofuzz -// +build gofuzz package fuzz diff --git a/fuzzit/url/url_fuzz.go b/fuzzit/url/url_fuzz.go index cc61949b90..1e7c5a2009 100644 --- a/fuzzit/url/url_fuzz.go +++ b/fuzzit/url/url_fuzz.go @@ -1,5 +1,4 @@ //go:build gofuzz -// +build gofuzz package fuzz diff --git a/reuseport/reuseport.go b/reuseport/reuseport.go index 6e13acbd5b..8ad9b06c74 100644 --- a/reuseport/reuseport.go +++ b/reuseport/reuseport.go @@ -1,5 +1,4 @@ //go:build !windows && !aix -// +build !windows,!aix // Package reuseport provides TCP net.Listener with SO_REUSEPORT support. // diff --git a/round2_32.go b/round2_32.go index 2990e4211d..f7276fc188 100644 --- a/round2_32.go +++ b/round2_32.go @@ -1,5 +1,4 @@ //go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x -// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x package fasthttp diff --git a/round2_32_test.go b/round2_32_test.go index 1bb2c0dbe7..51dc2f5a99 100644 --- a/round2_32_test.go +++ b/round2_32_test.go @@ -1,5 +1,4 @@ //go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x -// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x package fasthttp diff --git a/round2_64.go b/round2_64.go index 8a8e2a23e1..e74368cc2e 100644 --- a/round2_64.go +++ b/round2_64.go @@ -1,5 +1,4 @@ //go:build amd64 || arm64 || ppc64 || ppc64le || s390x -// +build amd64 arm64 ppc64 ppc64le s390x package fasthttp diff --git a/round2_64_test.go b/round2_64_test.go index d805802ef7..2509ce9004 100644 --- a/round2_64_test.go +++ b/round2_64_test.go @@ -1,5 +1,4 @@ //go:build amd64 || arm64 || ppc64 || ppc64le || s390x -// +build amd64 arm64 ppc64 ppc64le s390x package fasthttp diff --git a/s2b_new.go b/s2b_new.go index 45ec2dbae4..aedc448e71 100644 --- a/s2b_new.go +++ b/s2b_new.go @@ -1,5 +1,4 @@ //go:build go1.20 -// +build go1.20 package fasthttp diff --git a/s2b_old.go b/s2b_old.go index d269cba7e5..50a034b849 100644 --- a/s2b_old.go +++ b/s2b_old.go @@ -1,5 +1,4 @@ //go:build !go1.20 -// +build !go1.20 package fasthttp diff --git a/tcp.go b/tcp.go index 54d30334ea..7e804374f0 100644 --- a/tcp.go +++ b/tcp.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package fasthttp diff --git a/tcp_windows.go b/tcp_windows.go index 5c33025f40..d71950b949 100644 --- a/tcp_windows.go +++ b/tcp_windows.go @@ -1,6 +1,3 @@ -//go:build windows -// +build windows - package fasthttp import ( diff --git a/uri_unix.go b/uri_unix.go index c2ac8fa46e..1226fc97a9 100644 --- a/uri_unix.go +++ b/uri_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package fasthttp diff --git a/uri_windows.go b/uri_windows.go index 903fba76c7..46f4b07a81 100644 --- a/uri_windows.go +++ b/uri_windows.go @@ -1,6 +1,3 @@ -//go:build windows -// +build windows - package fasthttp func addLeadingSlash(dst, src []byte) []byte { diff --git a/uri_windows_test.go b/uri_windows_test.go index 7e66968be1..bec110e392 100644 --- a/uri_windows_test.go +++ b/uri_windows_test.go @@ -1,6 +1,3 @@ -//go:build windows -// +build windows - package fasthttp import "testing"