aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/utils/string_util.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 18:22:10 +0200
committerEinar Johan Trøan Sømåen2012-07-29 18:24:08 +0200
commit6b07218eb24e91865eee277758112e5bb4fecd97 (patch)
tree2b78f1bc62bc73b910a95063c57da690eac8b10a /engines/wintermute/utils/string_util.cpp
parent20e2ec4ff4d869ba54edf5b930d84340245292b6 (diff)
downloadscummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.tar.gz
scummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.tar.bz2
scummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.zip
WINTERMUTE: Remove statics and silence spam in debug console.
Diffstat (limited to 'engines/wintermute/utils/string_util.cpp')
-rw-r--r--engines/wintermute/utils/string_util.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/engines/wintermute/utils/string_util.cpp b/engines/wintermute/utils/string_util.cpp
index b51d094784..ed1d2094d2 100644
--- a/engines/wintermute/utils/string_util.cpp
+++ b/engines/wintermute/utils/string_util.cpp
@@ -162,11 +162,6 @@ char simpleAnsiToWide(const AnsiString &str, uint32 &offset) {
//////////////////////////////////////////////////////////////////////////
WideString StringUtil::ansiToWide(const AnsiString &str) {
// TODO: This function gets called a lot, so warnings like these drown out the usefull information
- static bool hasWarned = false;
- if (!hasWarned) {
- hasWarned = true;
- warning("StringUtil::AnsiToWide - WideString not supported yet");
- }
/*Common::String converted = "";
uint32 index = 0;
while (index != str.size()) {
@@ -188,11 +183,6 @@ WideString StringUtil::ansiToWide(const AnsiString &str) {
AnsiString StringUtil::wideToAnsi(const WideString &wstr) {
// using default os locale!
// TODO: This function gets called a lot, so warnings like these drown out the usefull information
- static bool hasWarned = false;
- if (!hasWarned) {
- hasWarned = true;
- warning("StringUtil::WideToAnsi - WideString not supported yet");
- }
/* setlocale(LC_CTYPE, "");
size_t wideSize = wcstombs(NULL, wstr.c_str(), 0) + 1;
char *str = new char[WideSize];