Clean up the 'js' build tags

Updates #1129
This commit is contained in:
Hajime Hoshi 2020-10-07 01:18:39 +09:00
parent a046700ae1
commit 7a0e31a23a
21 changed files with 2 additions and 37 deletions

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package ebitenutil package ebitenutil
import ( import (

View File

@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
// +build example // +build example
package main package main

View File

@ -684,7 +684,7 @@ func main() {
filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl, filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl,
filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl, filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl,
filepath.Join("internal", "uidriver", "mobile", "keys.go"): mobileGBuildKeysTmpl, filepath.Join("internal", "uidriver", "mobile", "keys.go"): mobileGBuildKeysTmpl,
filepath.Join("internal", "uidriver", "js", "keys.go"): uidriverJsKeysTmpl, filepath.Join("internal", "uidriver", "js", "keys_js.go"): uidriverJsKeysTmpl,
filepath.Join("keys.go"): ebitenKeysTmpl, filepath.Join("keys.go"): ebitenKeysTmpl,
filepath.Join("mobile", "ebitenmobileview", "keys_android.go"): mobileAndroidKeysTmpl, filepath.Join("mobile", "ebitenmobileview", "keys_android.go"): mobileAndroidKeysTmpl,
} { } {
@ -711,8 +711,6 @@ func main() {
"\n// +build !js" + "\n// +build !js" +
"\n// +build !android" + "\n// +build !android" +
"\n// +build !ios" "\n// +build !ios"
case "internal/uidriver/js/keys.go":
buildTag = "// +build js"
} }
// 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

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package devicescale package devicescale
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
package devicescale package devicescale
func impl(x, y int) float64 { func impl(x, y int) float64 {

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
package devicescale package devicescale
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package opengl package opengl
import ( import (

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !go1.13 !wasm // +build !go1.13
package jsutil package jsutil

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package jsutil_test package jsutil_test
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package restorable package restorable
// needsDisposingWhenRestoring reports whether disposing resources is necessary or not when restoring. // needsDisposingWhenRestoring reports whether disposing resources is necessary or not when restoring.

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package testflock package testflock
import ( import (

View File

@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
// +build !ebitengl // +build !ebitengl
package glfw package glfw

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
package glfw package glfw
import ( import (

View File

@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
// +build !ios // +build !ios
package glfw package glfw

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !js
package glfw package glfw
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package js package js
import ( import (

View File

@ -14,8 +14,6 @@
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT. // Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
// +build js
package js package js
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package js package js
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package web package web
import ( import (

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js
package ebiten package ebiten
import ( import (