去除不合理的Node::getAction方法

This commit is contained in:
Nomango 2018-05-26 14:08:31 +08:00
parent 9bd8229b3f
commit 6f8e0a4c3e
2 changed files with 0 additions and 18 deletions

View File

@ -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 e2d::Node::containsPoint(const Point& point) const
{ {
BOOL ret = 0; BOOL ret = 0;

View File

@ -376,11 +376,6 @@ public:
const String& name const String& name
); );
// 获取动作
virtual Action * getAction(
const String& name
);
// 继续所有暂停动作 // 继续所有暂停动作
virtual void resumeAllActions(); virtual void resumeAllActions();