Merge pull request #6602 from minggo/remove-unneeded-codes

remove unneeded codes
This commit is contained in:
minggo 2014-05-12 13:41:12 +08:00
commit b23056537b
2 changed files with 0 additions and 23 deletions

View File

@ -520,18 +520,6 @@ void Texture2D::setGLProgram(GLProgram* 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
{
return _hasPremultipliedAlpha;

View File

@ -203,17 +203,6 @@ public:
*/
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
* @js NA
* @lua NA