From 087f30b72d2beea2c659578d122228251972ac06 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 12 Feb 2020 20:58:23 +0900 Subject: [PATCH] ui: Remove the unused function setWindowResizable Updates #994 --- window.go | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/window.go b/window.go index 2818fcbcf..ff3197792 100644 --- a/window.go +++ b/window.go @@ -49,26 +49,6 @@ func IsWindowDecorated() bool { return false } -// setWindowResizable is unexported until specification is determined (#320) -// -// setWindowResizable sets the state if the window is resizable. -// -// The window is not resizable by default. -// -// When the window is resizable, the image size given via the update function can be changed by resizing. -// -// setWindowResizable works only on desktops. -// setWindowResizable does nothing on other platforms. -// -// setWindowResizable panics if setWindowResizable is called after the main loop. -// -// setWindowResizable is concurrent-safe. -func setWindowResizable(resizable bool) { - if w := uiDriver().Window(); w != nil { - w.SetResizable(resizable) - } -} - // IsWindowResizable reports whether the window is resizable by the user's dragging on desktops. // On the other environments, IsWindowResizable always returns false. // @@ -83,6 +63,8 @@ func IsWindowResizable() bool { // SetWindowResizable sets whether the window is resizable by the user's dragging on desktops. // On the other environments, SetWindowResizable does nothing. // +// The window is not resizable by default. +// // If SetWindowResizable is called with true and Run is used, SetWindowResizable panics. Use RunGame instead. // // SetWindowResizable is concurrent-safe.