From 5efaa5125fe92a5438b3cc2949f4d720bced5a7a Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 2 Mar 2024 12:55:32 +0000 Subject: General code cleanups * Don't needlessly store or return raw pointers in BeingInfo * Less copying, more moving * Less else after return * Make AddDEF a template instead of a macro * Removed some unused includes * Use range-based for loops --- src/gui/setup_interface.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/gui/setup_interface.cpp') diff --git a/src/gui/setup_interface.cpp b/src/gui/setup_interface.cpp index 3697285c..e30a85de 100644 --- a/src/gui/setup_interface.cpp +++ b/src/gui/setup_interface.cpp @@ -22,27 +22,16 @@ #include "gui/setup_interface.h" #include "configuration.h" -#include "game.h" -#include "graphics.h" #include "localplayer.h" -#include "log.h" -#include "main.h" -//#include "particle.h" - -#include "gui/okdialog.h" #include "gui/widgets/checkbox.h" #include "gui/widgets/label.h" #include "gui/widgets/layout.h" -#include "gui/widgets/listbox.h" -#include "gui/widgets/scrollarea.h" #include "gui/widgets/slider.h" #include "gui/widgets/spacer.h" -#include "gui/widgets/textfield.h" #include "gui/widgets/dropdown.h" #include "utils/gettext.h" -#include "utils/stringutils.h" #include #include @@ -50,9 +39,6 @@ #include #include -#include - -extern Graphics *graphics; const char *SIZE_NAME[4] = { @@ -65,8 +51,6 @@ const char *SIZE_NAME[4] = class FontSizeChoiceListModel : public gcn::ListModel { public: - ~FontSizeChoiceListModel() override { } - int getNumberOfElements() override { return 4; @@ -277,6 +261,4 @@ void Setup_Interface::action(const gcn::ActionEvent &event) { config.setValue("logNpcInGui", mNPCLogCheckBox->isSelected()); } - } - -- cgit v1.2.3-70-g09d2