mirror of https://github.com/axmolengine/axmol.git
Removes unused code in Material::initWithFile.
This commit is contained in:
parent
e7ed79f655
commit
057db2444c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue