From a10d84197028de074d41d16e893bf041541cb566 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 11 Sep 2009 19:26:44 +0000 Subject: (svn r17505) -Codechange: WWT_EMPTY is not a special case any more for invalidating widgets. --- src/widget.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index b4c0c9819..e39712e9c 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -2272,13 +2272,6 @@ void NWidgetLeaf::Draw(const Window *w) } } -void NWidgetLeaf::Invalidate(const Window *w) const -{ - if (this->type == WWT_EMPTY) return; // Don't repaint dummy widgets. - NWidgetBase::Invalidate(w); -} - - Scrollbar *NWidgetLeaf::FindScrollbar(Window *w, bool allow_next) { if (this->type == WWT_SCROLLBAR) return &w->vscroll; -- cgit v1.2.3-54-g00ecf