cleanup: Remove "computeXX" functions and XX variables, these were always returning X/2 in all cases.

Test suite passes
This commit is contained in:
wagic.the.homebrew
2011-05-02 11:28:04 +00:00
parent 13dd07973e
commit 53f45a8b8e
10 changed files with 5 additions and 40 deletions

View File

@@ -245,14 +245,6 @@ int Spell::computeX(MTGCardInstance * card)
return x;
}
int Spell::computeXX(MTGCardInstance * card)
{
ManaCost * c = cost->Diff(card->getManaCost());
int xx = c->getCost(Constants::MTG_NB_COLORS) / 2;
delete c;
return xx;
}
bool Spell::FullfilledAlternateCost(const int &costType)
{
bool hasFullfilledAlternateCost = false;