diff options
Diffstat (limited to 'source/blender/freestyle/intern/system')
-rw-r--r-- | source/blender/freestyle/intern/system/StringUtils.cpp | 20 | ||||
-rw-r--r-- | source/blender/freestyle/intern/system/StringUtils.h | 2 |
2 files changed, 1 insertions, 21 deletions
diff --git a/source/blender/freestyle/intern/system/StringUtils.cpp b/source/blender/freestyle/intern/system/StringUtils.cpp index 20cec90fc9f..28876c4031f 100644 --- a/source/blender/freestyle/intern/system/StringUtils.cpp +++ b/source/blender/freestyle/intern/system/StringUtils.cpp @@ -54,7 +54,7 @@ void getPathName(const string& path, const string& base, vector<string>& pathnam BLI_strncpy(cleaned, dir.c_str(), FILE_MAX); BLI_cleanup_file(NULL, cleaned); - res = toAscii(string(cleaned)); + res = string(cleaned); if (!base.empty()) res += Config::DIR_SEP + base; @@ -63,24 +63,6 @@ void getPathName(const string& path, const string& base, vector<string>& pathnam } } -string toAscii(const string &str) -{ - stringstream out(""); - char s; - - for (unsigned int i = 0; i < str.size() ; i++) { - s = ((char)(str.at(i) & 0x7F)); - out << s; - } - - return out.str(); -} - -const char *toAscii(const char *str) -{ - return toAscii(string(str)).c_str(); -} - } // end of namespace StringUtils } /* namespace Freestyle */ diff --git a/source/blender/freestyle/intern/system/StringUtils.h b/source/blender/freestyle/intern/system/StringUtils.h index 983e102d439..92600eddc42 100644 --- a/source/blender/freestyle/intern/system/StringUtils.h +++ b/source/blender/freestyle/intern/system/StringUtils.h @@ -53,8 +53,6 @@ namespace StringUtils { LIB_SYSTEM_EXPORT void getPathName(const string& path, const string& base, vector<string>& pathnames); -string toAscii(const string &str); -const char *toAscii(const char *str); // STL related struct ltstr |