internal/ui: remove Bounds

This commit is contained in:
Hajime Hoshi 2024-02-12 15:23:54 +09:00
parent fca8ebb9af
commit 67d947d37a
3 changed files with 0 additions and 20 deletions

View File

@ -16,7 +16,6 @@ package ui
import ( import (
"errors" "errors"
"image"
"math" "math"
"sync" "sync"
"syscall/js" "syscall/js"
@ -792,13 +791,6 @@ type Monitor struct{}
var theMonitor = &Monitor{} 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 { func (m *Monitor) Name() string {
return "" return ""
} }

View File

@ -19,7 +19,6 @@ package ui
import ( import (
stdcontext "context" stdcontext "context"
"fmt" "fmt"
"image"
"runtime" "runtime"
"runtime/debug" "runtime/debug"
"sync" "sync"
@ -279,11 +278,6 @@ type Monitor struct{}
var theMonitor = &Monitor{} 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 { func (m *Monitor) Name() string {
return "" return ""
} }

View File

@ -22,7 +22,6 @@ import "C"
import ( import (
"errors" "errors"
"image"
"runtime" "runtime"
"sync" "sync"
@ -169,11 +168,6 @@ type Monitor struct{}
var theMonitor = &Monitor{} 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 { func (m *Monitor) Name() string {
return "" return ""
} }