mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7942 from andyque/deleteRedundantCode
remove dead code
This commit is contained in:
commit
659ba68199
|
@ -313,9 +313,6 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic, Ref* root)
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActionNode::initActionNodeFromRoot(Ref* root)
|
void ActionNode::initActionNodeFromRoot(Ref* root)
|
||||||
{
|
|
||||||
Node* rootNode = dynamic_cast<Node*>(root);
|
|
||||||
if (rootNode != nullptr)
|
|
||||||
{
|
{
|
||||||
Widget* rootWidget = dynamic_cast<Widget*>(root);
|
Widget* rootWidget = dynamic_cast<Widget*>(root);
|
||||||
if (rootWidget != nullptr)
|
if (rootWidget != nullptr)
|
||||||
|
@ -327,7 +324,6 @@ void ActionNode::initActionNodeFromRoot(Ref* root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void ActionNode::setUnitTime(float fTime)
|
void ActionNode::setUnitTime(float fTime)
|
||||||
{
|
{
|
||||||
|
@ -367,14 +363,6 @@ Node* ActionNode::getActionNode()
|
||||||
{
|
{
|
||||||
return cNode;
|
return cNode;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Widget* rootWidget = dynamic_cast<Widget*>(_object);
|
|
||||||
if (rootWidget != nullptr)
|
|
||||||
{
|
|
||||||
return rootWidget;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue