Skip to content

Commit

Permalink
internal/ui: refactoring: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 29, 2023
1 parent ae1ea3b commit accb777
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 33 deletions.
3 changes: 0 additions & 3 deletions internal/ui/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 0 additions & 6 deletions internal/ui/ui_glfw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 0 additions & 6 deletions internal/ui/ui_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 0 additions & 6 deletions internal/ui/ui_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,6 @@ func (u *UserInterface) ScheduleFrame() {
}
}

func (u *UserInterface) beginFrame() {
}

func (u *UserInterface) endFrame() {
}

func (u *UserInterface) updateIconIfNeeded() error {
return nil
}
Expand Down
6 changes: 0 additions & 6 deletions internal/ui/ui_nintendosdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 0 additions & 6 deletions internal/ui/ui_playstation5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit accb777

Please sign in to comment.