mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03: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:
@@ -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()
|
||||
|
||||
@@ -234,7 +234,6 @@ public:
|
||||
std::vector<int>bestlives;
|
||||
std::vector<int> bestrank;
|
||||
|
||||
bool telecookieexists;
|
||||
bool quickcookieexists;
|
||||
|
||||
std::string tele_gametime;
|
||||
|
||||
Reference in New Issue
Block a user