Use go:build lines and remove obsolete +build lines (#4175)

This commit is contained in:
Håvard Anda Estensen 2022-05-17 09:46:53 +02:00 committed by GitHub
parent 4e7807251a
commit 0a75065e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with 15 additions and 47 deletions

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package bind package bind

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build freebsd || dragonfly //go:build freebsd || dragonfly
// +build freebsd dragonfly
package fdlimit package fdlimit

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build linux || netbsd || openbsd || solaris //go:build linux || netbsd || openbsd || solaris
// +build linux netbsd openbsd solaris
package fdlimit package fdlimit

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build none //go:build none
/* /*

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package state package state

View File

@ -1,5 +1,4 @@
//go:build go1.6 //go:build go1.6
// +build go1.6
// Code generated by codecgen - DO NOT EDIT. // Code generated by codecgen - DO NOT EDIT.

View File

@ -3,7 +3,6 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build go1.7 && amd64 && !gccgo && !appengine //go:build go1.7 && amd64 && !gccgo && !appengine
// +build go1.7,amd64,!gccgo,!appengine
package blake2b package blake2b

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build !go1.7,amd64,!gccgo,!appengine //go:build !go1.7 && amd64 && !gccgo && !appengine
package blake2b package blake2b

View File

@ -1,4 +1,4 @@
// +build gofuzz //go:build gofuzz
package blake2b package blake2b

View File

@ -3,7 +3,6 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build !amd64 || appengine || gccgo //go:build !amd64 || appengine || gccgo
// +build !amd64 appengine gccgo
package blake2b package blake2b

View File

@ -3,7 +3,6 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build go1.9 //go:build go1.9
// +build go1.9
package blake2b package blake2b

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // 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 package bls12381

View File

@ -31,7 +31,7 @@
// Package bls (generated by goff) contains field arithmetics operations // Package bls (generated by goff) contains field arithmetics operations
// +build !amd64 !blsasm,!blsadx //go:build !amd64 || (!blsasm && !blsadx)
package bls12381 package bls12381

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build amd64,blsadx //go:build amd64 && blsadx
package bls12381 package bls12381

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build amd64,blsasm //go:build amd64 && blsasm
package bls12381 package bls12381

View File

@ -3,7 +3,6 @@
// in the LICENSE file. // in the LICENSE file.
//go:build amd64 || arm64 //go:build amd64 || arm64
// +build amd64 arm64
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. // Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256 package bn256

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found // Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file. // 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 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256 package bn256

View File

@ -1,5 +1,4 @@
//go:build (amd64 && !generic) || (arm64 && !generic) //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic
package bn256 package bn256

View File

@ -1,4 +1,4 @@
// +build !amd64,!arm64 generic //go:build (!amd64 && !arm64) || generic
package bn256 package bn256

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !nacl && !js && cgo && !gofuzz //go:build !nacl && !js && cgo && !gofuzz
// +build !nacl,!js,cgo,!gofuzz
package crypto package crypto

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // 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 package crypto

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !js //go:build !js
// +build !js
package olddb package olddb

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build go1.6 //go:build go1.6
// +build go1.6
package debug package debug

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !go1.6 //go:build !go1.6
package debug package debug

View File

@ -1,5 +1,4 @@
//go:build !windows //go:build !windows
// +build !windows
package debug package debug

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package debug package debug

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build go1.5 //go:build go1.5
// +build go1.5
package debug package debug

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // 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. // no-op implementation of tracing methods for Go < 1.5.

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package p2p package p2p

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package discover package discover

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package discover package discover

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package discover package discover

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package discover package discover

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package enode package enode

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package nat package nat

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !windows //go:build !windows
// +build !windows
package netutil package netutil

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//+build windows //go:build windows
package netutil package netutil

View File

@ -1,5 +1,4 @@
//go:build gorules //go:build gorules
// +build gorules
package gorules package gorules

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // 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/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build gofuzz //go:build gofuzz
package bls package bls

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build integration //go:build integration
// +build integration
package tests package tests

View File

@ -1,5 +1,4 @@
//go:build tools //go:build tools
// +build tools
package tools package tools

View File

@ -1,5 +1,4 @@
//go:build integration //go:build integration
// +build integration
package rlphacks package rlphacks