Optimize, remove unnecessory truncate.

This commit is contained in:
halx99 2016-06-23 16:01:05 +08:00 committed by GitHub
parent ee7ceee007
commit cd93612746
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;
}