From ceb8d3f3d8b4be1adf87e37a5ccce559d2c9dbf4 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 15 Apr 2020 23:33:25 -0700 Subject: [PATCH] Remove unused variable Game::menuselection I presume it was meant to have the text of the currently-selected menu option inside it, before the code switched over to using the indice of the currently-selected menu instead? Would've been more error-prone to use the text name directly. --- desktop_version/src/Game.cpp | 2 -- desktop_version/src/Game.h | 1 - 2 files changed, 3 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index ab8c50f5..f677ee85 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -223,7 +223,6 @@ void Game::init(void) unlocknotify.resize(25); currentmenuoption = 0; - menuselection = "null"; current_credits_list_index = 0; menuxoff = 0; menuyoff = 0; @@ -6546,7 +6545,6 @@ std::string Game::timetstring( int t ) void Game::createmenu( enum Menu::MenuName t ) { currentmenuoption = 0; - menuselection = "null"; currentmenuname = t; menuxoff = 0; menuyoff = 0; diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index b3c25fee..02dbd3c1 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -221,7 +221,6 @@ public: //Main Menu Variables std::vector menuoptions; int currentmenuoption ; - std::string menuselection; enum Menu::MenuName currentmenuname, previousmenuname; int current_credits_list_index; int menuxoff, menuyoff;