From ee6253319a8f57582df61461bf0731918506b67c Mon Sep 17 00:00:00 2001 From: geron-cn Date: Wed, 5 Aug 2015 23:07:42 +0800 Subject: [PATCH] delete useless code --- cocos/editor-support/cocostudio/ActionTimeline/CCBoneNode.cpp | 3 --- .../cocostudio/ActionTimeline/CCSkeletonNode.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/cocos/editor-support/cocostudio/ActionTimeline/CCBoneNode.cpp b/cocos/editor-support/cocostudio/ActionTimeline/CCBoneNode.cpp index 74ebf4292d..ad8aae028e 100644 --- a/cocos/editor-support/cocostudio/ActionTimeline/CCBoneNode.cpp +++ b/cocos/editor-support/cocostudio/ActionTimeline/CCBoneNode.cpp @@ -579,9 +579,6 @@ void BoneNode::visitSkins(cocos2d::Renderer* renderer, BoneNode* bone) _director->pushMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); _director->loadMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, bone->_modelViewTransform); - bool visibleByCamera = bone->isVisitableByVisitingCamera(); - - int i = 0; if (!bone->_boneSkins.empty()) { bone->sortAllChildren(); diff --git a/cocos/editor-support/cocostudio/ActionTimeline/CCSkeletonNode.cpp b/cocos/editor-support/cocostudio/ActionTimeline/CCSkeletonNode.cpp index b1959c0310..16653931a3 100644 --- a/cocos/editor-support/cocostudio/ActionTimeline/CCSkeletonNode.cpp +++ b/cocos/editor-support/cocostudio/ActionTimeline/CCSkeletonNode.cpp @@ -161,11 +161,7 @@ void SkeletonNode::visit(cocos2d::Renderer *renderer, const cocos2d::Mat4& paren _director->pushMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); _director->loadMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform); - bool visibleByCamera = isVisitableByVisitingCamera(); - int i = 0; - - if (!_children.empty()) { sortAllChildren();