diff --git a/core/Node/Node.cpp b/core/Node/Node.cpp index ce9ab205..7c680d7e 100644 --- a/core/Node/Node.cpp +++ b/core/Node/Node.cpp @@ -808,19 +808,6 @@ void e2d::Node::stopAction(const String& name) } } -e2d::Action * e2d::Node::getAction(const String& name) -{ - auto& actions = ActionManager::get(name); - for (auto action : actions) - { - if (action->getTarget() == this) - { - return action; - } - } - return nullptr; -} - bool e2d::Node::containsPoint(const Point& point) const { BOOL ret = 0; diff --git a/core/e2dnode.h b/core/e2dnode.h index 573ad4da..6204d79b 100644 --- a/core/e2dnode.h +++ b/core/e2dnode.h @@ -376,11 +376,6 @@ public: const String& name ); - // 获取动作 - virtual Action * getAction( - const String& name - ); - // 继续所有暂停动作 virtual void resumeAllActions();