From c498b8092ea780c66ce66ee2922ed712b9649462 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 24 May 2018 19:13:30 +0800 Subject: [PATCH] Remove compatibility code --- cocos2d/particle/CCParticleSystem.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js index 7d6314e0c1..62518abf6d 100644 --- a/cocos2d/particle/CCParticleSystem.js +++ b/cocos2d/particle/CCParticleSystem.js @@ -188,11 +188,6 @@ var properties = { return this._file; }, set: function (value, force) { - if (typeof value === 'string') { - // backward compatibility since 1.10 - cc.errorID(8401, 'cc.ParticleSystem', 'cc.ParticleAsset', 'ParticleAsset', 'cc.ParticleAsset', 'particle'); - value = { nativeUrl: value }; - } if (this._file !== value || (CC_EDITOR && force)) { this._file = value; if (value) {