mirror of https://github.com/axmolengine/axmol.git
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:
parent
07646f1c82
commit
6e19da12c3
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue