From cd9361274651a8ce711450a4e7178cc874948c1d Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 23 Jun 2016 16:01:05 +0800 Subject: [PATCH] Optimize, remove unnecessory truncate. --- cocos/platform/CCFileUtils.cpp | 4 ---- 1 file changed, 4 deletions(-) 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; }