changeset 15629:a0ac2fb55902 draft

(svn r20292) -Codechange: remove some unused variables from AIConfigWindow
author yexo <yexo@openttd.org>
date Sun, 01 Aug 2010 22:03:55 +0000
parents 84f84dbcec20
children 99e5fa7d1ea4
files src/ai/ai_gui.cpp
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -507,14 +507,9 @@
  */
 struct AIConfigWindow : public Window {
 	CompanyID selected_slot;
-	bool clicked_button;
-	bool clicked_increase;
-	int timeout;
 	int line_height;
 
-	AIConfigWindow() : Window(),
-		clicked_button(false),
-		timeout(0)
+	AIConfigWindow() : Window()
 	{
 		this->InitNested(&_ai_config_desc); // Initializes 'this->line_height' as a side effect.
 		this->selected_slot = INVALID_COMPANY;
@@ -658,14 +653,6 @@
 		this->SetWidgetDisabledState(AIC_WIDGET_MOVE_UP, this->selected_slot == INVALID_COMPANY || this->selected_slot == 1);
 		this->SetWidgetDisabledState(AIC_WIDGET_MOVE_DOWN, this->selected_slot == INVALID_COMPANY || this->selected_slot == _settings_newgame.difficulty.max_no_competitors);
 	}
-
-	virtual void OnTick()
-	{
-		if (--this->timeout == 0) {
-			this->clicked_button = false;
-			this->SetDirty();
-		}
-	}
 };
 
 void ShowAIConfigWindow()