Skip to content

Commit

Permalink
Remove an exported method that shouldn't be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 16, 2018
1 parent 243bcfb commit ab22536
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions window.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,3 @@ type Window interface {
// Canvas returns the canvas context to render in the window
Canvas() Canvas
}

// GetWindow returns the window containing the passed Canvas.
// It will return nil if the Canvas is not associated with any existing windows.
func GetWindow(c Canvas) Window {
for _, window := range GetDriver().AllWindows() {
if window.Canvas() != nil && window.Canvas() == c {
return window
}
}

return nil
}

0 comments on commit ab22536

Please sign in to comment.