Bug 705433 - Remove dead code: TestNode::HasAncestor; r=jst

This commit is contained in:
Ms2ger 2011-12-03 22:50:17 +01:00
Родитель f98b831f89
Коммит 2cb8eab88b
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -454,13 +454,6 @@ TestNode::Constrain(InstantiationSet& aInstantiations)
}
bool
TestNode::HasAncestor(const ReteNode* aNode) const
{
return aNode == this || (mParent && mParent->HasAncestor(aNode));
}
//----------------------------------------------------------------------
ReteNodeSet::ReteNodeSet()

Просмотреть файл

@ -878,14 +878,6 @@ public:
bool* aCantHandleYet) const = 0;
//XXX probably better named "ApplyConstraints" or "Discrminiate" or something
/**
* Determine if this node has another node as its direct ancestor.
* @param aNode the node to look for.
* @return true if aNode is a direct ancestor of this node, false
* otherwise.
*/
bool HasAncestor(const ReteNode* aNode) const;
/**
* Add another node as a child of this node.
* @param aNode the node to add.