diff --git a/cocos/platform/CCFileUtils.cpp b/cocos/platform/CCFileUtils.cpp index 934adf1674..9ec2d83a97 100644 --- a/cocos/platform/CCFileUtils.cpp +++ b/cocos/platform/CCFileUtils.cpp @@ -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; }