diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index 0b4dfa9..1c24d94 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -196,8 +196,6 @@ this.frame = this._frame; } - - this.dispatchEvent( { type: 'update', content: this } ); }; @@ -269,24 +267,6 @@ }; /** - * Helper function that returns a Texture objected based on the given frame id. - * If the frame id is not in the texture cache an error will be thrown. - * - * @static - * @param frameId {string} The frame id of the texture - * @return Texture - */ -Texture.fromFrame = function (frameId) -{ - var texture = utils.TextureCache[frameId]; - if (!texture) - { - throw new Error('The frameId "' + frameId + '" does not exist in the texture cache '); - } - return texture; -}; - -/** * Helper function that creates a new Texture based on the given canvas element. * * @static