mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
ui: Remove isSafari that is not used anywhere
This commit is contained in:
parent
b05455a2a6
commit
99d170b454
@ -18,7 +18,6 @@ package ui
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"github.com/gopherjs/gopherjs/js"
|
"github.com/gopherjs/gopherjs/js"
|
||||||
@ -349,17 +348,6 @@ func Run(width, height int, scale float64, title string, g GraphicsContext) erro
|
|||||||
return u.loop(g)
|
return u.loop(g)
|
||||||
}
|
}
|
||||||
|
|
||||||
func isSafari() bool {
|
|
||||||
ua := js.Global.Get("navigator").Get("userAgent").String()
|
|
||||||
if !strings.Contains(ua, "Safari") {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if strings.Contains(ua, "Chrome") {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func (u *userInterface) setScreenSize(width, height int, scale float64, fullscreen bool) bool {
|
func (u *userInterface) setScreenSize(width, height int, scale float64, fullscreen bool) bool {
|
||||||
if u.width == width && u.height == height &&
|
if u.width == width && u.height == height &&
|
||||||
u.scale == scale && fullscreen == u.fullscreen {
|
u.scale == scale && fullscreen == u.fullscreen {
|
||||||
|
Loading…
Reference in New Issue
Block a user