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

View File

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

View File

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