mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15939 from halx99/patch-2
Optimize, remove unnecessory truncate.
This commit is contained in:
commit
dbc083b924
|
@ -614,10 +614,6 @@ std::string FileUtils::getStringFromFile(const std::string& filename)
|
|||
{
|
||||
std::string s;
|
||||
getContents(filename, &s);
|
||||
|
||||
// truncated
|
||||
s.resize(strlen(s.data()));
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue