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 348fef1..477665a 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 2f7d6f7..a45222c 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 6b9f799..f6e9466 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 b574883..baa9459 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 3f5d5de..b954bba 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 94d0ec6..e7c01bb 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 0689809..8eb5030 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 40819bf..c9231a2 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 21f4ced..0a49b13 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 09ef72a..6246e30 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 08e2ac6..a025198 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 a1cce1e..929513f 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 93cf16d..84b13e8 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 76bf54a..fe2a727 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 cc61949..1e7c5a2 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 6e13acb..8ad9b06 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 2990e42..f7276fc 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 1bb2c0d..51dc2f5 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 8a8e2a2..e74368c 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 d805802..2509ce9 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 45ec2db..aedc448 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 d269cba..50a034b 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 54d3033..7e80437 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 5c33025..d71950b 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 c2ac8fa..1226fc9 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 903fba7..46f4b07 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 7e66968..bec110e 100644 --- a/uri_windows_test.go +++ b/uri_windows_test.go @@ -1,6 +1,3 @@ -//go:build windows -// +build windows - package fasthttp import "testing"