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:build example
// +build example
```
`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.
//go:build android || ios
// +build android ios
package audio

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,7 +13,6 @@
// limitations under the License.
//go:build example
// +build example
// 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).

View File

@ -13,7 +13,6 @@
// limitations under the License.
//go:build example
// +build example
// 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,7 +13,6 @@
// limitations under the License.
//go:build ignore
// +build ignore
// 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 := ""
switch path {
case filepath.Join("internal", "glfw", "keys.go"):
buildTag = "//go:build !js" +
"\n// +build !js"
buildTag = "//go:build !js"
case filepath.Join("internal", "ui", "keys_mobile.go"):
buildTag = "//go:build (android || ios) && !nintendosdk" +
"\n// +build android ios" +
"\n// +build !nintendosdk"
buildTag = "//go:build (android || ios) && !nintendosdk"
case filepath.Join("internal", "ui", "keys_glfw.go"):
buildTag = "//go:build !android && !ios && !js && !nintendosdk" +
"\n// +build !android,!ios,!js,!nintendosdk"
buildTag = "//go:build !android && !ios && !js && !nintendosdk"
}
// NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, struct {

View File

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

View File

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

View File

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

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