Skip to content

Commit

Permalink
Use go:build lines and remove obsolete +build lines (erigontech#4175)
Browse files Browse the repository at this point in the history
  • Loading branch information
estensen authored May 17, 2022
1 parent 4e78072 commit 0a75065
Show file tree
Hide file tree
Showing 47 changed files with 15 additions and 47 deletions.
1 change: 0 additions & 1 deletion accounts/abi/bind/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package bind

Expand Down
1 change: 0 additions & 1 deletion common/fdlimit/fdlimit_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build freebsd || dragonfly
// +build freebsd dragonfly

package fdlimit

Expand Down
1 change: 0 additions & 1 deletion common/fdlimit/fdlimit_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build linux || netbsd || openbsd || solaris
// +build linux netbsd openbsd solaris

package fdlimit

Expand Down
2 changes: 1 addition & 1 deletion core/mkalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build none
//go:build none

/*
Expand Down
1 change: 0 additions & 1 deletion core/state/intra_block_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package state

Expand Down
1 change: 0 additions & 1 deletion core/types/receipt_codecgen_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crypto/blake2b/blake2bAVX2_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build go1.7 && amd64 && !gccgo && !appengine
// +build go1.7,amd64,!gccgo,!appengine

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion crypto/blake2b/blake2b_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !go1.7,amd64,!gccgo,!appengine
//go:build !go1.7 && amd64 && !gccgo && !appengine

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion crypto/blake2b/blake2b_f_fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package blake2b

Expand Down
1 change: 0 additions & 1 deletion crypto/blake2b/blake2b_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !amd64 || appengine || gccgo
// +build !amd64 appengine gccgo

package blake2b

Expand Down
1 change: 0 additions & 1 deletion crypto/blake2b/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build go1.9
// +build go1.9

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion crypto/bls12381/arithmetic_decl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build amd64,blsasm amd64,blsadx
//go:build (amd64 && blsasm) || (amd64 && blsadx)

package bls12381

Expand Down
2 changes: 1 addition & 1 deletion crypto/bls12381/arithmetic_fallback.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crypto/bls12381/arithmetic_x86_adx.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build amd64,blsadx
//go:build amd64 && blsadx

package bls12381

Expand Down
2 changes: 1 addition & 1 deletion crypto/bls12381/arithmetic_x86_noadx.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build amd64,blsasm
//go:build amd64 && blsasm

package bls12381

Expand Down
1 change: 0 additions & 1 deletion crypto/bn256/bn256_fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// in the LICENSE file.

//go:build amd64 || arm64
// +build amd64 arm64

// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn256/bn256_slow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

// +build !amd64,!arm64
//go:build !amd64 && !arm64

// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256
Expand Down
1 change: 0 additions & 1 deletion crypto/bn256/cloudflare/gfp_decl.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic

package bn256

Expand Down
2 changes: 1 addition & 1 deletion crypto/bn256/cloudflare/gfp_generic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !amd64,!arm64 generic
//go:build (!amd64 && !arm64) || generic

package bn256

Expand Down
1 change: 0 additions & 1 deletion crypto/signature_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build !nacl && !js && cgo && !gofuzz
// +build !nacl,!js,cgo,!gofuzz

package crypto

Expand Down
2 changes: 1 addition & 1 deletion crypto/signature_nocgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build nacl js !cgo gofuzz
//go:build nacl || js || !cgo || gofuzz

package crypto

Expand Down
1 change: 0 additions & 1 deletion ethdb/olddb/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build !js
// +build !js

package olddb

Expand Down
1 change: 0 additions & 1 deletion internal/debug/loudpanic.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build go1.6
// +build go1.6

package debug

Expand Down
2 changes: 1 addition & 1 deletion internal/debug/loudpanic_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build !go1.6
//go:build !go1.6

package debug

Expand Down
1 change: 0 additions & 1 deletion internal/debug/signal.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package debug

Expand Down
2 changes: 1 addition & 1 deletion internal/debug/signal_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package debug

Expand Down
1 change: 0 additions & 1 deletion internal/debug/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build go1.5
// +build go1.5

package debug

Expand Down
2 changes: 1 addition & 1 deletion internal/debug/trace_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//+build !go1.5
//go:build !go1.5

// no-op implementation of tracing methods for Go < 1.5.

Expand Down
1 change: 0 additions & 1 deletion p2p/dial_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package p2p

Expand Down
1 change: 0 additions & 1 deletion p2p/discover/table_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package discover

Expand Down
1 change: 0 additions & 1 deletion p2p/discover/v4_lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package discover

Expand Down
1 change: 0 additions & 1 deletion p2p/discover/v5_lookup_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package discover

Expand Down
1 change: 0 additions & 1 deletion p2p/discover/v5_udp_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package discover

Expand Down
1 change: 0 additions & 1 deletion p2p/enode/iter_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package enode

Expand Down
1 change: 0 additions & 1 deletion p2p/nat/natupnp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package nat

Expand Down
1 change: 0 additions & 1 deletion p2p/netutil/toobig_notwindows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build !windows
// +build !windows

package netutil

Expand Down
2 changes: 1 addition & 1 deletion p2p/netutil/toobig_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//+build windows
//go:build windows

package netutil

Expand Down
1 change: 0 additions & 1 deletion rules.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build gorules
// +build gorules

package gorules

Expand Down
1 change: 0 additions & 1 deletion tests/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
1 change: 0 additions & 1 deletion tests/difficulty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
2 changes: 1 addition & 1 deletion tests/fuzzers/bls12381/bls12381_fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build gofuzz
//go:build gofuzz

package bls

Expand Down
1 change: 0 additions & 1 deletion tests/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
1 change: 0 additions & 1 deletion tests/rlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
1 change: 0 additions & 1 deletion tests/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
1 change: 0 additions & 1 deletion tests/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
// +build integration

package tests

Expand Down
1 change: 0 additions & 1 deletion tools.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build tools
// +build tools

package tools

Expand Down
1 change: 0 additions & 1 deletion turbo/rlphacks/bytes_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package rlphacks

Expand Down

0 comments on commit 0a75065

Please sign in to comment.