Browse Source

HeroBonus: remove unused function

Konstantin 2 years ago
parent
commit
0c7dbea990
2 changed files with 0 additions and 8 deletions
  1. 0 7
      lib/HeroBonus.cpp
  2. 0 1
      lib/HeroBonus.h

+ 0 - 7
lib/HeroBonus.cpp

@@ -1418,13 +1418,6 @@ void CBonusSystemNode::getRedAncestors(TNodes &out)
 		parent->getRedAncestors(out);
 }
 
-void CBonusSystemNode::getRedDescendants(TNodes &out)
-{
-	getRedChildren(out);
-	FOREACH_RED_CHILD(c)
-		c->getRedChildren(out);
-}
-
 void CBonusSystemNode::exportBonus(const std::shared_ptr<Bonus> & b)
 {
 	if(b->propagator)

+ 0 - 1
lib/HeroBonus.h

@@ -813,7 +813,6 @@ public:
 	void getRedParents(TNodes &out);  //retrieves list of red parent nodes (nodes bonuses propagate from)
 	void getRedAncestors(TNodes &out);
 	void getRedChildren(TNodes &out);
-	void getRedDescendants(TNodes &out);
 	void getAllParents(TCNodes & out) const;
 	static PlayerColor retrieveNodeOwner(const CBonusSystemNode * node);
 	std::shared_ptr<Bonus> getBonusLocalFirst(const CSelector & selector);