зеркало из https://github.com/mozilla/gecko-dev.git
Bug 705433 - Remove dead code: TestNode::HasAncestor; r=jst
This commit is contained in:
Родитель
f98b831f89
Коммит
2cb8eab88b
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче