summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 21:09:58 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 15:25:31 +0200
commitb280a3a0ed8c641fb7e39067fccbba668be2e1c6 (patch)
tree9932459c0e96b207d056dac90fee1f7677427f58 /src/console.cpp
parentefd4ba4797c90a4e624a3f039c84a2321641dab4 (diff)
downloadopenttd-b280a3a0ed8c641fb7e39067fccbba668be2e1c6.tar.xz
Cleanup: remove IConsoleWarning/IConsoleError helpers
Both did not support format parameters, so in many places IConsolePrint(CC_ERROR, "message") was used with a style different from what IConsoleError would do.
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/console.cpp b/src/console.cpp
index 82e6e04bf..90403b33f 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -145,26 +145,6 @@ void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...)
}
/**
- * It is possible to print warnings to the console. These are mostly
- * errors or mishaps, but non-fatal. You need at least a level 1 (developer) for
- * debugging messages to show up
- */
-void IConsoleWarning(const char *string)
-{
- if (_settings_client.gui.developer == 0) return;
- IConsolePrintF(CC_WARNING, "WARNING: %s", string);
-}
-
-/**
- * It is possible to print error information to the console. This can include
- * game errors, or errors in general you would want the user to notice
- */
-void IConsoleError(const char *string)
-{
- IConsolePrintF(CC_ERROR, "ERROR: %s", string);
-}
-
-/**
* Change a string into its number representation. Supports
* decimal and hexadecimal numbers as well as 'on'/'off' 'true'/'false'
* @param *value the variable a successful conversion will be put in