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
// limitations under the License.
// +build js
package ebitenutil
import (

View File

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

View File

@ -684,7 +684,7 @@ func main() {
filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl,
filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl,
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("mobile", "ebitenmobileview", "keys_android.go"): mobileAndroidKeysTmpl,
} {
@ -711,8 +711,6 @@ func main() {
"\n// +build !js" +
"\n// +build !android" +
"\n// +build !ios"
case "internal/uidriver/js/keys.go":
buildTag = "// +build js"
}
// NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, struct {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build js
package restorable
// 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
// limitations under the License.
// +build js
package testflock
import (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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