Remove stub HandleOnEditText and now unused global variables.

This commit is contained in:
Jonathan G Rennison
2017-03-01 21:20:15 +00:00
parent f820543391
commit 49e922daa6
3 changed files with 3 additions and 10 deletions

View File

@@ -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;
}