Remove an unused private field.

Issue found by Clang 3.2.
This commit is contained in:
Mark de Wever 2012-12-22 13:39:56 +00:00
parent f2eb85d641
commit 62d2ea0f9e
4 changed files with 4 additions and 7 deletions

View File

@ -49,11 +49,10 @@ namespace gui2 {
REGISTER_DIALOG(data_manage)
tdata_manage::tdata_manage(const config& cache_config)
tdata_manage::tdata_manage()
: txtFilter_(register_text("txtFilter", true))
, filename_()
, games_()
, cache_config_(cache_config)
, last_words_()
{
}

View File

@ -27,7 +27,7 @@ namespace gui2 {
class tdata_manage : public tdialog
{
public:
explicit tdata_manage(const config& cache_config);
tdata_manage();
const std::string& filename() const { return filename_; }
@ -51,7 +51,6 @@ private:
std::string filename_;
std::vector<savegame::save_info> games_;
const config& cache_config_;
std::vector<std::string> last_words_;
};

View File

@ -3307,7 +3307,7 @@ void console_handler::do_control_dialog()
void console_handler::do_manage() {
config cfg;
gui2::tdata_manage manager(cfg);
gui2::tdata_manage manager;
manager.show(resources::screen->video());
}

View File

@ -514,8 +514,7 @@ struct twrapper<gui2::tdata_manage>
{
static gui2::tdata_manage* create()
{
/** @todo Would be nice to add real data to the config. */
return new gui2::tdata_manage(config());
return new gui2::tdata_manage();
}
};