fixed #3480 remove unused ret.

This commit is contained in:
chengstory 2014-01-03 02:49:11 +08:00
parent e08e4ce0f8
commit ee2d9e9c74
1 changed files with 0 additions and 22 deletions

View File

@ -218,13 +218,11 @@ std::string loadSceneEdtiorFileTest::title()
void loadSceneEdtiorFileTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -266,13 +264,11 @@ std::string SpriteComponentTest::title()
void SpriteComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -323,13 +319,11 @@ std::string ArmatureComponentTest::title()
void ArmatureComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -376,13 +370,11 @@ std::string UIComponentTest::title()
void UIComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -447,13 +439,11 @@ std::string TmxMapComponentTest::title()
void TmxMapComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -505,13 +495,11 @@ std::string ParticleComponentTest::title()
void ParticleComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -558,13 +546,11 @@ std::string EffectComponentTest::title()
void EffectComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -621,13 +607,11 @@ std::string BackgroundComponentTest::title()
void BackgroundComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -672,14 +656,12 @@ std::string AttributeComponentTest::title()
void AttributeComponentTest::onEnter()
{
SceneEditorTestLayer::onEnter();
bool bRet = false;
do
{
Node *root = createGameScene();
CC_BREAK_IF(!root);
initData();
this->addChild(root, 0, 1);
bRet = true;
} while (0);
}
@ -731,10 +713,6 @@ cocos2d::Node* AttributeComponentTest::createGameScene()
return node;
}
TriggerTest::TriggerTest()
: _node(nullptr)
, _touchListener(nullptr)