Răsfoiți Sursa

Rtmoved unused method BattleInfo::getStackT

AlexVinS 9 ani în urmă
părinte
comite
97504364e4
2 a modificat fișierele cu 0 adăugiri și 6 ștergeri
  1. 0 5
      lib/BattleState.cpp
  2. 0 1
      lib/BattleState.h

+ 0 - 5
lib/BattleState.cpp

@@ -721,11 +721,6 @@ CStack * BattleInfo::getStack(int stackID, bool onlyAlive /*= true*/)
 	return const_cast<CStack *>(battleGetStackByID(stackID, onlyAlive));
 	return const_cast<CStack *>(battleGetStackByID(stackID, onlyAlive));
 }
 }
 
 
-CStack * BattleInfo::getStackT(BattleHex tileID, bool onlyAlive /*= true*/)
-{
-	return const_cast<CStack *>(battleGetStackByPos(tileID, onlyAlive));
-}
-
 BattleInfo::BattleInfo()
 BattleInfo::BattleInfo()
 {
 {
 	setBattle(this);
 	setBattle(this);

+ 0 - 1
lib/BattleState.h

@@ -107,7 +107,6 @@ struct DLL_LINKAGE BattleInfo : public CBonusSystemNode, public CBattleInfoCallb
 	~BattleInfo(){};
 	~BattleInfo(){};
 
 
 	//////////////////////////////////////////////////////////////////////////
 	//////////////////////////////////////////////////////////////////////////
-	CStack * getStackT(BattleHex tileID, bool onlyAlive = true);
 	CStack * getStack(int stackID, bool onlyAlive = true);
 	CStack * getStack(int stackID, bool onlyAlive = true);
 	using CBattleInfoEssentials::battleGetArmyObject;
 	using CBattleInfoEssentials::battleGetArmyObject;
 	CArmedInstance * battleGetArmyObject(ui8 side) const;
 	CArmedInstance * battleGetArmyObject(ui8 side) const;