internal/ui: refactoring: remove unused functions

This commit is contained in:
Hajime Hoshi 2023-10-29 19:16:11 +09:00
parent ae1ea3ba05
commit accb777f51
6 changed files with 0 additions and 33 deletions

View File

@ -84,9 +84,6 @@ func (c *context) forceUpdateFrame(graphicsDriver graphicsdriver.Graphics, outsi
}
func (c *context) updateFrameImpl(graphicsDriver graphicsdriver.Graphics, updateCount int, outsideWidth, outsideHeight float64, deviceScaleFactor float64, ui *UserInterface, forceDraw bool, swapBuffersForGL func()) (err error) {
ui.beginFrame()
defer ui.endFrame()
// The given outside size can be 0 e.g. just after restoring from the fullscreen mode on Windows (#1589)
// Just ignore such cases. Otherwise, creating a zero-sized framebuffer causes a panic.
if outsideWidth == 0 || outsideHeight == 0 {

View File

@ -930,12 +930,6 @@ func (u *UserInterface) createWindow() error {
return nil
}
func (u *UserInterface) beginFrame() {
}
func (u *UserInterface) endFrame() {
}
// registerWindowCloseCallback must be called from the main thread.
func (u *UserInterface) registerWindowCloseCallback() error {
if u.closeCallback == nil {

View File

@ -814,12 +814,6 @@ func (u *UserInterface) Monitor() *Monitor {
return theMonitor
}
func (u *UserInterface) beginFrame() {
}
func (u *UserInterface) endFrame() {
}
func (u *UserInterface) updateIconIfNeeded() error {
return nil
}

View File

@ -481,12 +481,6 @@ func (u *UserInterface) ScheduleFrame() {
}
}
func (u *UserInterface) beginFrame() {
}
func (u *UserInterface) endFrame() {
}
func (u *UserInterface) updateIconIfNeeded() error {
return nil
}

View File

@ -177,12 +177,6 @@ func (*UserInterface) Window() Window {
return &nullWindow{}
}
func (u *UserInterface) beginFrame() {
}
func (u *UserInterface) endFrame() {
}
func (u *UserInterface) updateIconIfNeeded() error {
return nil
}

View File

@ -150,12 +150,6 @@ func (*UserInterface) Window() Window {
return &nullWindow{}
}
func (u *UserInterface) beginFrame() {
}
func (u *UserInterface) endFrame() {
}
func (u *UserInterface) updateIconIfNeeded() error {
return nil
}