From ab225368e0afee25b599e3df84d3eff12e2a1a29 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Fri, 16 Nov 2018 19:31:10 +0000 Subject: [PATCH] Remove an exported method that shouldn't be needed --- window.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/window.go b/window.go index 2b559aa59c..bd0e24c2af 100644 --- a/window.go +++ b/window.go @@ -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 -}