1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Remove useless variable Game::telecookieexists

Although it keeps getting set to true and false in various places, it
never once gets checked, essentially deeming it a variable that's used
but does nothing.
This commit is contained in:
Misa 2020-04-01 15:55:22 -07:00 committed by Ethan Lee
parent 9cec63bcf7
commit 340f57762d
2 changed files with 0 additions and 7 deletions

View file

@ -334,13 +334,11 @@ void Game::init(void)
TiXmlDocument docTele;
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
{
telecookieexists = false;
telesummary = "";
printf("Teleporter Save Not Found\n");
}
else
{
telecookieexists = true;
TiXmlHandle hDoc(&docTele);
TiXmlElement* pElem;
TiXmlHandle hRoot(0);
@ -5460,12 +5458,10 @@ void Game::loadsummary()
TiXmlDocument docTele;
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
{
telecookieexists = false;
telesummary = "";
}
else
{
telecookieexists = true;
TiXmlHandle hDoc(&docTele);
TiXmlElement* pElem;
TiXmlHandle hRoot(0);
@ -5664,7 +5660,6 @@ void Game::savetele()
//telecookie = SharedObject.getLocal("dwvvvvvv_tele");
//Save to the telesave cookie
telecookieexists = true;
if (map.custommode)
{
@ -7758,7 +7753,6 @@ void Game::deletetele()
printf("Error deleting file\n");
telesummary = "";
telecookieexists = false;
}
void Game::swnpenalty()

View file

@ -234,7 +234,6 @@ public:
std::vector<int>bestlives;
std::vector<int> bestrank;
bool telecookieexists;
bool quickcookieexists;
std::string tele_gametime;