Merge pull request #15939 from halx99/patch-2

Optimize, remove unnecessory truncate.
This commit is contained in:
minggo 2016-06-24 09:54:57 +08:00 committed by GitHub
commit dbc083b924
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}