Remove stub HandleOnEditText and now unused global variables.
This commit is contained in:
		| @@ -22,7 +22,6 @@ | ||||
| struct Window; | ||||
|  | ||||
| /* main_gui.cpp */ | ||||
| void HandleOnEditText(const char *str); | ||||
| void InitializeGUI(); | ||||
|  | ||||
| /* settings_gui.cpp */ | ||||
|   | ||||
| @@ -47,9 +47,6 @@ | ||||
|  | ||||
| #include "safeguards.h" | ||||
|  | ||||
| static int _rename_id = 1; | ||||
| static int _rename_what = -1; | ||||
|  | ||||
| void CcGiveMoney(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2) | ||||
| { | ||||
| #ifdef ENABLE_NETWORK | ||||
| @@ -68,11 +65,6 @@ void CcGiveMoney(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2 | ||||
| #endif /* ENABLE_NETWORK */ | ||||
| } | ||||
|  | ||||
| void HandleOnEditText(const char *str) | ||||
| { | ||||
| 	NOT_REACHED(); | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * This code is shared for the majority of the pushbuttons. | ||||
|  * Handles e.g. the pressing of a button (to build things), playing of click sound and sets certain parameters | ||||
|   | ||||
| @@ -945,6 +945,8 @@ struct QueryStringWindow : public Window | ||||
| 	QueryStringWindow(StringID str, StringID caption, uint max_bytes, uint max_chars, WindowDesc *desc, Window *parent, CharSetFilter afilter, QueryStringFlags flags) : | ||||
| 			Window(desc), editbox(max_bytes, max_chars) | ||||
| 	{ | ||||
| 		assert(parent != NULL); | ||||
|  | ||||
| 		char *last_of = &this->editbox.text.buf[this->editbox.text.max_bytes - 1]; | ||||
| 		GetString(this->editbox.text.buf, str, last_of); | ||||
| 		str_validate(this->editbox.text.buf, last_of, SVS_NONE); | ||||
| @@ -996,7 +998,7 @@ struct QueryStringWindow : public Window | ||||
| 			if (this->parent != NULL) { | ||||
| 				this->parent->OnQueryTextFinished(this->editbox.text.buf); | ||||
| 			} else { | ||||
| 				HandleOnEditText(this->editbox.text.buf); | ||||
| 				NOT_REACHED(); | ||||
| 			} | ||||
| 			this->editbox.handled = true; | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan G Rennison
					Jonathan G Rennison