1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00

Remove useless variable Game::quickcookieexists

Even though it keeps getting set to true and false everywhere, it never
once gets checked. So it's a variable that does nothing.
This commit is contained in:
Misa 2020-04-01 15:58:47 -07:00 committed by Ethan Lee
parent 340f57762d
commit 606c740b4f
2 changed files with 0 additions and 11 deletions

View File

@ -296,13 +296,11 @@ void Game::init(void)
TiXmlDocument doc; TiXmlDocument doc;
if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc)) if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc))
{ {
quickcookieexists = false;
quicksummary = ""; quicksummary = "";
printf("Quick Save Not Found\n"); printf("Quick Save Not Found\n");
} }
else else
{ {
quickcookieexists = true;
TiXmlHandle hDoc(&doc); TiXmlHandle hDoc(&doc);
TiXmlElement* pElem; TiXmlElement* pElem;
TiXmlHandle hRoot(0); TiXmlHandle hRoot(0);
@ -5547,12 +5545,10 @@ void Game::loadsummary()
TiXmlDocument doc; TiXmlDocument doc;
if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc)) if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc))
{ {
quickcookieexists = false;
quicksummary = ""; quicksummary = "";
} }
else else
{ {
quickcookieexists = true;
TiXmlHandle hDoc(&doc); TiXmlHandle hDoc(&doc);
TiXmlElement* pElem; TiXmlElement* pElem;
TiXmlHandle hRoot(0); TiXmlHandle hRoot(0);
@ -5907,8 +5903,6 @@ void Game::savetele()
void Game::savequick() void Game::savequick()
{ {
quickcookieexists = true;
if (map.custommode) if (map.custommode)
{ {
//Don't trash save data! //Don't trash save data!
@ -6156,8 +6150,6 @@ void Game::savequick()
void Game::customsavequick(std::string savfile) void Game::customsavequick(std::string savfile)
{ {
quickcookieexists = true;
TiXmlDocument doc; TiXmlDocument doc;
TiXmlElement* msg; TiXmlElement* msg;
TiXmlDeclaration* decl = new TiXmlDeclaration( "1.0", "", "" ); TiXmlDeclaration* decl = new TiXmlDeclaration( "1.0", "", "" );
@ -7744,7 +7736,6 @@ void Game::deletequick()
printf("Error deleting file\n"); printf("Error deleting file\n");
quicksummary = ""; quicksummary = "";
quickcookieexists = false;
} }
void Game::deletetele() void Game::deletetele()

View File

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