From 565c42ff7f6fa5670fece6faaf07af4d34b105c4 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Thu, 17 Aug 2017 14:19:57 +0800 Subject: [PATCH] remove redundant code --- cocos2d/core/components/CCLabel.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 49840c6f7e..250de3da11 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -489,11 +489,6 @@ var Label = cc.Class({ __preload: function () { this._super(); - var sgSizeInitialized = this._sgNode._isUseSystemFont; - if (sgSizeInitialized) { - this._updateNodeSize(); - } - // node should be resize whenever font changed, needed only on web if (!CC_JSB) { this._sgNode.on('load', this._updateNodeSize, this);