Skip to content
Browse files

Commented out defined but unused functions.

  • Loading branch information...
1 parent 1b97177 commit 4294a26abd93c972492dbc2b1055353581ddf170 Mark Morschhäuser committed Jun 3, 2014
Showing with 11 additions and 9 deletions.
  1. +3 −2 gemrb/core/LRUCache.cpp
  2. +8 −7 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
View
5 gemrb/core/LRUCache.cpp
@@ -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;
@@ -219,5 +219,6 @@ void testLRUCache()
assert(!c.getLRU(1, k2, p));
}
+*/
}
View
15 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
@@ -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

0 comments on commit 4294a26

Please sign in to comment.
Something went wrong with that request. Please try again.