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 "" }