From 7b81f3a81115afecb2fd22b5f1bbf3f72cd75f05 Mon Sep 17 00:00:00 2001 From: andyque Date: Tue, 27 Jan 2015 10:17:41 +0800 Subject: [PATCH] remove unused code --- cocos/ui/UIButton.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cocos/ui/UIButton.cpp b/cocos/ui/UIButton.cpp index 7847428e18..45ef0531a4 100644 --- a/cocos/ui/UIButton.cpp +++ b/cocos/ui/UIButton.cpp @@ -449,15 +449,9 @@ void Button::onPressStateChangedToPressed() _buttonNormalRenderer->setScale(_pressedTextureScaleXInSize + _zoomScale, _pressedTextureScaleYInSize + _zoomScale); _titleRenderer->stopAllActions(); + Action *zoomTitleAction = ScaleTo::create(ZOOM_ACTION_TIME_STEP, 1.0f + _zoomScale, 1.0f + _zoomScale); - if (_unifySize) - { - _titleRenderer->runAction(zoomTitleAction); - } - else - { - _titleRenderer->runAction(zoomTitleAction->clone()); - } + _titleRenderer->runAction(zoomTitleAction); } } else