mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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 (
|
||||
"strconv"
|
||||
"strings"
|
||||
"unicode"
|
||||
|
||||
"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)
|
||||
}
|
||||
|
||||
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 {
|
||||
if u.width == width && u.height == height &&
|
||||
u.scale == scale && fullscreen == u.fullscreen {
|
||||
|
Loading…
Reference in New Issue
Block a user