ui: Remove isSafari that is not used anywhere

This commit is contained in:
Hajime Hoshi 2017-08-27 02:14:23 +09:00
parent b05455a2a6
commit 99d170b454

View File

@ -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 {