fixed memory leak in double tap gesture

fixed some compiler warnings
removed dead and useless code
This commit is contained in:
techdragon.nguyen@gmail.com
2011-10-08 00:56:07 +00:00
parent 9f09bbeec3
commit fbe2e44814
14 changed files with 53 additions and 51 deletions
-6
View File
@@ -420,9 +420,6 @@ GameOption& GameOptions::operator[](string optionName)
GameOption * GameOptions::factorNewGameOption(string optionName, string value)
{
if (optionName == "prx_rimom")
int a = 0;
GameOption * result =( Unlockable::unlockables.find(optionName) != Unlockable::unlockables.end())
? NEW GameOptionAward()
: NEW GameOption();
@@ -435,9 +432,6 @@ GameOption * GameOptions::factorNewGameOption(string optionName, string value)
GameOption * GameOptions::get(string optionName)
{
if (optionName == "prx_rimom")
int a = 0;
if (!unknownMap[optionName])
{
unknownMap[optionName] = factorNewGameOption(optionName);