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:
parent
9cec63bcf7
commit
340f57762d
2 changed files with 0 additions and 7 deletions
|
@ -334,13 +334,11 @@ void Game::init(void)
|
||||||
TiXmlDocument docTele;
|
TiXmlDocument docTele;
|
||||||
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
|
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
|
||||||
{
|
{
|
||||||
telecookieexists = false;
|
|
||||||
telesummary = "";
|
telesummary = "";
|
||||||
printf("Teleporter Save Not Found\n");
|
printf("Teleporter Save Not Found\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
telecookieexists = true;
|
|
||||||
TiXmlHandle hDoc(&docTele);
|
TiXmlHandle hDoc(&docTele);
|
||||||
TiXmlElement* pElem;
|
TiXmlElement* pElem;
|
||||||
TiXmlHandle hRoot(0);
|
TiXmlHandle hRoot(0);
|
||||||
|
@ -5460,12 +5458,10 @@ void Game::loadsummary()
|
||||||
TiXmlDocument docTele;
|
TiXmlDocument docTele;
|
||||||
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
|
if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele))
|
||||||
{
|
{
|
||||||
telecookieexists = false;
|
|
||||||
telesummary = "";
|
telesummary = "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
telecookieexists = true;
|
|
||||||
TiXmlHandle hDoc(&docTele);
|
TiXmlHandle hDoc(&docTele);
|
||||||
TiXmlElement* pElem;
|
TiXmlElement* pElem;
|
||||||
TiXmlHandle hRoot(0);
|
TiXmlHandle hRoot(0);
|
||||||
|
@ -5664,7 +5660,6 @@ void Game::savetele()
|
||||||
|
|
||||||
//telecookie = SharedObject.getLocal("dwvvvvvv_tele");
|
//telecookie = SharedObject.getLocal("dwvvvvvv_tele");
|
||||||
//Save to the telesave cookie
|
//Save to the telesave cookie
|
||||||
telecookieexists = true;
|
|
||||||
|
|
||||||
if (map.custommode)
|
if (map.custommode)
|
||||||
{
|
{
|
||||||
|
@ -7758,7 +7753,6 @@ void Game::deletetele()
|
||||||
printf("Error deleting file\n");
|
printf("Error deleting file\n");
|
||||||
|
|
||||||
telesummary = "";
|
telesummary = "";
|
||||||
telecookieexists = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::swnpenalty()
|
void Game::swnpenalty()
|
||||||
|
|
|
@ -234,7 +234,6 @@ public:
|
||||||
std::vector<int>bestlives;
|
std::vector<int>bestlives;
|
||||||
std::vector<int> bestrank;
|
std::vector<int> bestrank;
|
||||||
|
|
||||||
bool telecookieexists;
|
|
||||||
bool quickcookieexists;
|
bool quickcookieexists;
|
||||||
|
|
||||||
std::string tele_gametime;
|
std::string tele_gametime;
|
||||||
|
|
Loading…
Reference in a new issue