From e7fb242716d5a86a6d46b79c7b9007b3eccc1a54 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 1 Nov 2013 05:43:01 +0000 Subject: [PATCH] small code cleanup from cppcheck --- source/glest_game/menu/menu_state_connected_game.cpp | 1 - source/glest_game/menu/menu_state_custom_game.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index 3f2e0d00..9f96656c 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -4217,7 +4217,6 @@ void MenuStateConnectedGame::FTPClient_CallbackEvent(string itemName, } void MenuStateConnectedGame::setupUIFromGameSettings(GameSettings *gameSettings, bool errorOnMissingData) { - Lang &lang= Lang::getInstance(); NetworkManager &networkManager= NetworkManager::getInstance(); ClientInterface *clientInterface = networkManager.getClientInterface(); diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index ac4800fd..c5168ce6 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -1556,7 +1556,6 @@ void MenuStateCustomGame::PlayNow(bool saveGame) { if(listBoxTechTree.getItemCount() <= 0) { mainMessageBoxState=1; - Lang &lang= Lang::getInstance(); char szMsg[8096]=""; strcpy(szMsg,"Cannot start game.\nThere are no tech-trees!\n"); printf("%s",szMsg);