all: remove old // +build comments (#2431)

Closes #2325
This commit is contained in:
Artem Yadelskyi 2022-11-03 05:55:14 +02:00 committed by GitHub
parent 40c7f2869b
commit 5b53cef59e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
183 changed files with 5 additions and 203 deletions

View File

@ -49,7 +49,6 @@ You don't have to update existing files' license comments.
```go ```go
//go:build example //go:build example
// +build example
``` ```
`example` is to prevent from installing executions by `go get github.com/hajimehoshi/ebiten/v2/...`. `example` is to prevent from installing executions by `go get github.com/hajimehoshi/ebiten/v2/...`.

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build android || ios //go:build android || ios
// +build android ios
package audio package audio

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !android && !ios //go:build !android && !ios
// +build !android,!ios
package audio package audio

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !ios //go:build !ios
// +build !ios
package audio package audio

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ebitenmobilegobind //go:build ebitenmobilegobind
// +build ebitenmobilegobind
// gobind is a wrapper of the original gobind. This command adds extra files like a view controller. // gobind is a wrapper of the original gobind. This command adds extra files like a view controller.
package main package main

View File

@ -116,8 +116,7 @@ func prepareGomobileCommands() (string, error) {
const ( const (
modname = "ebitenmobiletemporary" modname = "ebitenmobiletemporary"
buildtags = "//go:build tools" + buildtags = "//go:build tools"
"\n// +build tools"
) )
if err := runGo("mod", "init", modname); err != nil { if err := runGo("mod", "init", modname); err != nil {
return tmp, err return tmp, err

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !android && !ios && !js //go:build !android && !ios && !js
// +build !android,!ios,!js
package ebitenutil package ebitenutil

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !android && !ios //go:build !android && !ios
// +build !android,!ios
package ebitenutil package ebitenutil

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
// This is an example to implement an audio player. // This is an example to implement an audio player.
// See examples/wav for a simpler example to play a sound file. // See examples/wav for a simpler example to play a sound file.

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example && !js //go:build example && !js
// +build example,!js
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
// Reference: a public domain CRT effect // Reference: a public domain CRT effect
// https://github.com/libretro/glsl-shaders/blob/master/crt/shaders/crt-lottes.glsl // https://github.com/libretro/glsl-shaders/blob/master/crt/shaders/crt-lottes.glsl

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,8 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example && (microsoftgdk || nintendosdk) //go:build example && (microsoftgdk || nintendosdk)
// +build example
// +build microsoftgdk nintendosdk
// This file is for some special environments using 'microsoftgdk' or 'nintendosdk'. // This file is for some special environments using 'microsoftgdk' or 'nintendosdk'.
// You usually don't have to care about this file. // You usually don't have to care about this file.

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -22,7 +22,6 @@
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
// Mascot is a desktop mascot on cross platforms. // Mascot is a desktop mascot on cross platforms.
// This is inspired by mattn's gopher (https://github.com/mattn/gopher). // This is inspired by mattn's gopher (https://github.com/mattn/gopher).

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
// This example is an experiment to minify images with various filters. // This example is an experiment to minify images with various filters.
// When linear filter is used, mipmap images should be used for high-quality rendering (#578). // When linear filter is used, mipmap images should be used for high-quality rendering (#578).

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
// This example is just to check if Ebitengine can draw fine checker pattern evenly. // This example is just to check if Ebitengine can draw fine checker pattern evenly.
// If there is something wrong in the implementation, the result might include // If there is something wrong in the implementation, the result might include

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
// This demo is inspired by the xscreensaver 'squirals'. // This demo is inspired by the xscreensaver 'squirals'.

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build example //go:build example
// +build example
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
package main package main

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ignore //go:build ignore
// +build ignore
// The key name convention follows the Web standard: https://www.w3.org/TR/uievents-code/#keyboard-key-codes // The key name convention follows the Web standard: https://www.w3.org/TR/uievents-code/#keyboard-key-codes
@ -822,15 +821,11 @@ func main() {
buildTag := "" buildTag := ""
switch path { switch path {
case filepath.Join("internal", "glfw", "keys.go"): case filepath.Join("internal", "glfw", "keys.go"):
buildTag = "//go:build !js" + buildTag = "//go:build !js"
"\n// +build !js"
case filepath.Join("internal", "ui", "keys_mobile.go"): case filepath.Join("internal", "ui", "keys_mobile.go"):
buildTag = "//go:build (android || ios) && !nintendosdk" + buildTag = "//go:build (android || ios) && !nintendosdk"
"\n// +build android ios" +
"\n// +build !nintendosdk"
case filepath.Join("internal", "ui", "keys_glfw.go"): case filepath.Join("internal", "ui", "keys_glfw.go"):
buildTag = "//go:build !android && !ios && !js && !nintendosdk" + buildTag = "//go:build !android && !ios && !js && !nintendosdk"
"\n// +build !android,!ios,!js,!nintendosdk"
} }
// NOTE: According to godoc, maps are automatically sorted by key. // NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, struct { if err := tmpl.Execute(f, struct {

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build ebitenginedebug || ebitendebug //go:build ebitenginedebug || ebitendebug
// +build ebitenginedebug ebitendebug
package debug package debug

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !ebitenginedebug && !ebitendebug //go:build !ebitenginedebug && !ebitendebug
// +build !ebitenginedebug,!ebitendebug
package debug package debug

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
//go:build !android && !ios && !js //go:build !android && !ios && !js
// +build !android,!ios,!js
package devicescale package devicescale

Some files were not shown because too many files have changed in this diff Show More