changeset 13011:f0eea928291e draft

(svn r17505) -Codechange: WWT_EMPTY is not a special case any more for invalidating widgets.
author alberth <alberth@openttd.org>
date Fri, 11 Sep 2009 19:26:44 +0000
parents ecec35d9435b
children fbc1bbc180f9
files src/widget.cpp src/widget_type.h
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -2272,13 +2272,6 @@
 	}
 }
 
-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;
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -516,7 +516,6 @@
 
 	/* virtual */ void SetupSmallestSize(Window *w, bool init_array);
 	/* virtual */ void Draw(const Window *w);
-	/* virtual */ void Invalidate(const Window *w) const;
 	/* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true);
 
 	static void InvalidateDimensionCache();