mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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;
|
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()
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue