From 9706e377c799d4b2c0a9f88c8ba6768bf2ea858c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2016 19:23:03 +0300 Subject: Remove isVisible getter from widget. --- src/gui/widgets/widget.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index b94f81251..ed11955e5 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -401,9 +401,6 @@ class Widget notfinal : public Widget2 { return mVisible == Visible_true && (!mParent || mParent->isVisible()); } - bool isVisibleLocal() const noexcept A_WARN_UNUSED - { return mVisible == Visible_true; } - /** * Sets the base color of the widget. * @@ -1032,6 +1029,11 @@ class Widget notfinal : public Widget2 virtual void postInit() { } + /** + * True if the widget visible, false otherwise. + */ + Visible mVisible; + protected: /** * Distributes an action event to all action listeners @@ -1220,11 +1222,6 @@ class Widget notfinal : public Widget2 */ bool mFocusable; - /** - * True if the widget visible, false otherwise. - */ - Visible mVisible; - /** * True if the widget has tab in enabled, false otherwise. */ -- cgit v1.2.3-60-g2f50