From 67d947d37a89d3714741ea5c77301e8af7e5ee1f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 12 Feb 2024 15:23:54 +0900 Subject: [PATCH] internal/ui: remove Bounds --- internal/ui/ui_js.go | 8 -------- internal/ui/ui_mobile.go | 6 ------ internal/ui/ui_nintendosdk.go | 6 ------ 3 files changed, 20 deletions(-) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 31ddf1315..ce1d956ca 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -16,7 +16,6 @@ package ui import ( "errors" - "image" "math" "sync" "syscall/js" @@ -792,13 +791,6 @@ type Monitor struct{} var theMonitor = &Monitor{} -func (m *Monitor) Bounds() image.Rectangle { - screen := window.Get("screen") - w := screen.Get("width").Int() - h := screen.Get("height").Int() - return image.Rect(0, 0, w, h) -} - func (m *Monitor) Name() string { return "" } diff --git a/internal/ui/ui_mobile.go b/internal/ui/ui_mobile.go index 146fb1256..ff4633d11 100644 --- a/internal/ui/ui_mobile.go +++ b/internal/ui/ui_mobile.go @@ -19,7 +19,6 @@ package ui import ( stdcontext "context" "fmt" - "image" "runtime" "runtime/debug" "sync" @@ -279,11 +278,6 @@ type Monitor struct{} var theMonitor = &Monitor{} -func (m *Monitor) Bounds() image.Rectangle { - // TODO: This should return the available viewport dimensions. - return image.Rectangle{} -} - func (m *Monitor) Name() string { return "" } diff --git a/internal/ui/ui_nintendosdk.go b/internal/ui/ui_nintendosdk.go index cb8ff1d47..a2f445dee 100644 --- a/internal/ui/ui_nintendosdk.go +++ b/internal/ui/ui_nintendosdk.go @@ -22,7 +22,6 @@ import "C" import ( "errors" - "image" "runtime" "sync" @@ -169,11 +168,6 @@ type Monitor struct{} var theMonitor = &Monitor{} -func (m *Monitor) Bounds() image.Rectangle { - // TODO: This should return the available viewport dimensions. - return image.Rectangle{} -} - func (m *Monitor) Name() string { return "" }