diff options
author | Strangerke | 2016-08-27 11:07:49 +0200 |
---|---|---|
committer | Strangerke | 2016-08-27 11:07:49 +0200 |
commit | 5ca69756651f438fe09e64a706575084440881a7 (patch) | |
tree | 48e8d155b781c2e85dc2ca594db63af6dd2dea1c /engines/dm/dm.cpp | |
parent | bf5875d2fe5ae1a12212e3956012171c7bb8b33c (diff) | |
download | scummvm-rg350-5ca69756651f438fe09e64a706575084440881a7.tar.gz scummvm-rg350-5ca69756651f438fe09e64a706575084440881a7.tar.bz2 scummvm-rg350-5ca69756651f438fe09e64a706575084440881a7.zip |
DM: Remove custom warning function
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 92d09148ea..753b6cb253 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -64,25 +64,6 @@ #include <gui/saveload.h> namespace DM { -void warning(bool repeat, const char *s, ...) { - va_list va; - - va_start(va, s); - Common::String output = Common::String::vformat(s, va); - va_end(va); - - if (repeat) { - ::warning("%s", output.c_str()); - } else { - static Common::Array<Common::String> stringsPrinted; - - if (Common::find(stringsPrinted.begin(), stringsPrinted.end(), s) == stringsPrinted.end()) { - stringsPrinted.push_back(output); - ::warning("%s", output.c_str()); - } - } -} - const char *debugGetDirectionName(Direction dir) { static const char *directionNames[] = {"North", "East", "South", "West"}; if (dir < 0 || dir > 3) |