From 6f8e0a4c3ee0f1c84f1531b178640559e078802b Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Sat, 26 May 2018 14:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=90=88=E7=90=86?= =?UTF-8?q?=E7=9A=84Node::getAction=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Node/Node.cpp | 13 ------------- core/e2dnode.h | 5 ----- 2 files changed, 18 deletions(-) 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();