Removes unused code in Material::initWithFile.

This commit is contained in:
James Chen 2016-01-15 00:50:20 +08:00
parent e7ed79f655
commit 057db2444c
1 changed files with 0 additions and 4 deletions

View File

@ -105,10 +105,6 @@ bool Material::initWithGLProgramState(cocos2d::GLProgramState *state)
bool Material::initWithFile(const std::string& validfilename) bool Material::initWithFile(const std::string& validfilename)
{ {
Data data = FileUtils::getInstance()->getDataFromFile(validfilename);
char* bytes = (char*)data.getBytes();
bytes[data.getSize()-1]='\0';
// Warning: properties is not a "Ref" object, must be manually deleted // Warning: properties is not a "Ref" object, must be manually deleted
Properties* properties = Properties::createNonRefCounted(validfilename); Properties* properties = Properties::createNonRefCounted(validfilename);