remove unneeded codes

This commit is contained in:
minggo 2014-05-07 16:49:32 +08:00
parent 564d81017f
commit 1cbe29071b
2 changed files with 0 additions and 23 deletions

View File

@ -518,18 +518,6 @@ void Texture2D::setShaderProgram(GLProgram* shaderProgram)
_shaderProgram = shaderProgram; _shaderProgram = shaderProgram;
} }
void Texture2D::releaseData(void *data)
{
free(data);
}
void* Texture2D::keepData(void *data, unsigned int length)
{
CC_UNUSED_PARAM(length);
//The texture data mustn't be saved because it isn't a mutable texture.
return data;
}
bool Texture2D::hasPremultipliedAlpha() const bool Texture2D::hasPremultipliedAlpha() const
{ {
return _hasPremultipliedAlpha; return _hasPremultipliedAlpha;

View File

@ -203,17 +203,6 @@ public:
*/ */
virtual std::string getDescription() const; virtual std::string getDescription() const;
/** These functions are needed to create mutable textures
* @js NA
* @lua NA
*/
void releaseData(void *data);
/**
* @js NA
* @lua NA
*/
void* keepData(void *data, unsigned int length);
/** Initializes with a texture2d with data /** Initializes with a texture2d with data
* @js NA * @js NA
* @lua NA * @lua NA