internal/uidriver/glfw: Refactoring: Remove unused functions

This commit is contained in:
Hajime Hoshi 2021-10-10 16:02:01 +09:00
parent 4604a00e39
commit 0eb6c846c7

View File

@ -1441,18 +1441,6 @@ func (u *UserInterface) ResetForFrame() {
u.m.Unlock()
}
func (u *UserInterface) MonitorPosition() (int, int) {
if !u.isRunning() {
return u.monitorPosition()
}
var mx, my int
_ = u.t.Call(func() error {
mx, my = u.monitorPosition()
return nil
})
return mx, my
}
func (u *UserInterface) SetInitFocused(focused bool) {
if u.isRunning() {
panic("ui: SetInitFocused must be called before the main loop")
@ -1460,11 +1448,6 @@ func (u *UserInterface) SetInitFocused(focused bool) {
u.setInitFocused(focused)
}
func (u *UserInterface) monitorPosition() (int, int) {
// TODO: dipFromGLFWMonitorPixel might be required.
return u.currentMonitor().GetPos()
}
func (u *UserInterface) Input() driver.Input {
return &u.input
}