Skip to content

Commit

Permalink
Commented out defined but unused functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Morschhäuser committed Jun 3, 2014
1 parent 1b97177 commit 4294a26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions gemrb/core/LRUCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ void LRUCache::removeFromList(VarEntry* e)
e->prev = e->next = 0;
}


void testLRUCache()
/* commented out due to g++ -Wall: 'void GemRB::testLRUCache()' defined but not used [-Werror=unused-function]
static void testLRUCache()
{
int i;
LRUCache c;
Expand Down Expand Up @@ -219,5 +219,6 @@ void testLRUCache()
assert(!c.getLRU(1, k2, p));
}
*/

}
15 changes: 8 additions & 7 deletions gemrb/plugins/FXOpcodes/FXOpcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7268,14 +7268,15 @@ int fx_generate_wish (Scriptable* Owner, Actor* target, Effect* fx)
return FX_NOT_APPLIED;
}

// commented out due to g++ -Wall: 'int fx_immunity_sequester(GemRB::Scriptable*, GemRB::Actor*, GemRB::Effect*)' defined but not used [-Werror=unused-function]
//0x138 //see fx_crash, this effect is not fully enabled in original bg2/tob
int fx_immunity_sequester (Scriptable* /*Owner*/, Actor* target, Effect* fx)
{
if(0) print("fx_immunity_sequester(%2d): Mod: %d", fx->Opcode, fx->Parameter2);
//this effect is supposed to provide immunity against sequester (maze/etc?)
STAT_SET(IE_NOSEQUESTER, fx->Parameter2);
return FX_APPLIED;
}
// static int fx_immunity_sequester (Scriptable* /*Owner*/, Actor* target, Effect* fx)
// {
// if(0) print("fx_immunity_sequester(%2d): Mod: %d", fx->Opcode, fx->Parameter2);
// //this effect is supposed to provide immunity against sequester (maze/etc?)
// STAT_SET(IE_NOSEQUESTER, fx->Parameter2);
// return FX_APPLIED;
// }

//0x139 //HLA generic effect
//0x13a StoneSkin2Modifier
Expand Down

0 comments on commit 4294a26

Please sign in to comment.