mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
340f57762d
commit
606c740b4f
2 changed files with 0 additions and 11 deletions
|
@ -296,13 +296,11 @@ void Game::init(void)
|
|||
TiXmlDocument doc;
|
||||
if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc))
|
||||
{
|
||||
quickcookieexists = false;
|
||||
quicksummary = "";
|
||||
printf("Quick Save Not Found\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
quickcookieexists = true;
|
||||
TiXmlHandle hDoc(&doc);
|
||||
TiXmlElement* pElem;
|
||||
TiXmlHandle hRoot(0);
|
||||
|
@ -5547,12 +5545,10 @@ void Game::loadsummary()
|
|||
TiXmlDocument doc;
|
||||
if (!FILESYSTEM_loadTiXmlDocument("saves/qsave.vvv", &doc))
|
||||
{
|
||||
quickcookieexists = false;
|
||||
quicksummary = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
quickcookieexists = true;
|
||||
TiXmlHandle hDoc(&doc);
|
||||
TiXmlElement* pElem;
|
||||
TiXmlHandle hRoot(0);
|
||||
|
@ -5907,8 +5903,6 @@ void Game::savetele()
|
|||
|
||||
void Game::savequick()
|
||||
{
|
||||
quickcookieexists = true;
|
||||
|
||||
if (map.custommode)
|
||||
{
|
||||
//Don't trash save data!
|
||||
|
@ -6156,8 +6150,6 @@ void Game::savequick()
|
|||
|
||||
void Game::customsavequick(std::string savfile)
|
||||
{
|
||||
quickcookieexists = true;
|
||||
|
||||
TiXmlDocument doc;
|
||||
TiXmlElement* msg;
|
||||
TiXmlDeclaration* decl = new TiXmlDeclaration( "1.0", "", "" );
|
||||
|
@ -7744,7 +7736,6 @@ void Game::deletequick()
|
|||
printf("Error deleting file\n");
|
||||
|
||||
quicksummary = "";
|
||||
quickcookieexists = false;
|
||||
}
|
||||
|
||||
void Game::deletetele()
|
||||
|
|
|
@ -234,8 +234,6 @@ public:
|
|||
std::vector<int>bestlives;
|
||||
std::vector<int> bestrank;
|
||||
|
||||
bool quickcookieexists;
|
||||
|
||||
std::string tele_gametime;
|
||||
int tele_trinkets;
|
||||
std::string tele_currentarea;
|
||||
|
|
Loading…
Reference in a new issue