Review feedback: Remove unnecessary check of EventListener::getSceneGraphPriority() for fixed event listeners.

Fixed priority event listeners never have an associated node.
This commit is contained in:
Darragh Coy 2014-03-27 11:59:07 -07:00
parent 07646f1c82
commit 6e19da12c3
1 changed files with 0 additions and 10 deletions

View File

@ -464,16 +464,6 @@ void EventDispatcher::debugCheckNodeHasNoEventListenersOnDestruction(Node* node)
if (eventListenerVector)
{
if (eventListenerVector->getFixedPriorityListeners())
{
for (EventListener * listener : *eventListenerVector->getFixedPriorityListeners())
{
CCASSERT(!listener ||
listener->getSceneGraphPriority() != node,
"Node should have no event listeners registered for it upon destruction!");
}
}
if (eventListenerVector->getSceneGraphPriorityListeners())
{
for (EventListener * listener : *eventListenerVector->getSceneGraphPriorityListeners())