diff --git a/src/gui/dialogs/dialog.cpp b/src/gui/dialogs/dialog.cpp index 1ce81a464c0..9aae5c26fac 100644 --- a/src/gui/dialogs/dialog.cpp +++ b/src/gui/dialogs/dialog.cpp @@ -103,14 +103,6 @@ tfield_bool* tdialog::register_bool(const std::string& id return field; } -tfield_bool* tdialog::register_bool2(const std::string& id - , const bool mandatory - , bool& linked_variable - , void (*callback_change) (twidget* widget)) -{ - return register_bool(id, mandatory, linked_variable, callback_change); -} - tfield_integer* tdialog::register_integer( const std::string& id , const bool mandatory diff --git a/src/gui/dialogs/dialog.hpp b/src/gui/dialogs/dialog.hpp index 0f1d3650660..da43b8da24f 100644 --- a/src/gui/dialogs/dialog.hpp +++ b/src/gui/dialogs/dialog.hpp @@ -215,26 +215,6 @@ protected: , bool& linked_variable , void (*callback_change) (twidget* widget) = NULL); - /** - * Creates a new boolean field. - * - * The field created is owned by tdialog, the returned pointer can be used - * in the child classes as access to a field. - * - * @param id Id of the widget, same value as in WML. - * @param mandatory Is the widget mandatory or optional. - * @param linked_variable The variable the widget is linked to. See - * @ref tfield::tfield for more information. - * @param callback_change When the value of the widget changes this - * callback is called. - * - * @returns Pointer to the created widget. - */ - tfield_bool* register_bool2(const std::string& id - , const bool mandatory - , bool& linked_variable - , void (*callback_change) (twidget* widget) = NULL); - /** * Creates a new integer field. * diff --git a/src/gui/dialogs/edit_label.cpp b/src/gui/dialogs/edit_label.cpp index 5feb5b4808f..8e44d98f28c 100644 --- a/src/gui/dialogs/edit_label.cpp +++ b/src/gui/dialogs/edit_label.cpp @@ -49,7 +49,7 @@ REGISTER_DIALOG(edit_label) tedit_label::tedit_label(std::string& label, bool& team_only) { register_text2("label", true, label, true); - register_bool2("team_only_toggle", true, team_only); + register_bool("team_only_toggle", true, team_only); } } diff --git a/src/gui/dialogs/game_save.cpp b/src/gui/dialogs/game_save.cpp index e1924541820..c0d73a9e53d 100644 --- a/src/gui/dialogs/game_save.cpp +++ b/src/gui/dialogs/game_save.cpp @@ -76,7 +76,7 @@ tgame_save_oos::tgame_save_oos( register_label2("lblTitle", true, title); register_label2("txtFilename", false, filename); register_label2("lblMessage", true, message); - register_bool2("ignore_all", true, ignore_all); + register_bool("ignore_all", true, ignore_all); } } // namespace gui2