From 34d2e9a3fb11b784629c885eebe9f4f3baf8aaff Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 7 Jan 2018 05:25:29 +0900 Subject: [PATCH] ui: Remove unused function --- internal/ui/ui_js.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 97d78ee95..4838ca7d0 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -46,11 +46,6 @@ var currentUI = &userInterface{ windowFocus: true, } -// NOTE: This returns true even when the browser is not active. -func shown() bool { - return !js.Global.Get("document").Get("hidden").Bool() -} - func SetScreenSize(width, height int) bool { return currentUI.setScreenSize(width, height, currentUI.scale, currentUI.fullscreen) }