summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-24 18:40:16 +0000
committerrubidium <rubidium@openttd.org>2014-04-24 18:40:16 +0000
commit99452c51ce8c9042e900c02be206c469f85660e6 (patch)
treefa2d40028e628e3acdfc2a3c71bc570780aa3503 /src
parent8960939b22a474f42575b415f06c09eac7ff92fc (diff)
downloadopenttd-99452c51ce8c9042e900c02be206c469f85660e6.tar.xz
(svn r26500) -Cleanup: remove unused snprintf implementation
Diffstat (limited to 'src')
-rw-r--r--src/stdafx.h1
-rw-r--r--src/string.cpp14
2 files changed, 0 insertions, 15 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 951ab1c38..7d7e1990b 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -232,7 +232,6 @@
#define WARN_FORMAT(string, args)
#define FINAL sealed
- int CDECL snprintf(char *str, size_t size, const char *format, ...) WARN_FORMAT(3, 4);
#if defined(WINCE)
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap);
#endif
diff --git a/src/string.cpp b/src/string.cpp
index 90005071d..8a95d7b6f 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -346,20 +346,6 @@ bool IsValidChar(WChar key, CharSetFilter afilter)
}
#ifdef WIN32
-/* Since version 3.14, MinGW Runtime has snprintf() and vsnprintf() conform to C99 but it's not the case for older versions */
-#if (__MINGW32_MAJOR_VERSION < 3) || ((__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION < 14))
-int CDECL snprintf(char *str, size_t size, const char *format, ...)
-{
- va_list ap;
- int ret;
-
- va_start(ap, format);
- ret = vsnprintf(str, size, format, ap);
- va_end(ap);
- return ret;
-}
-#endif /* MinGW Runtime < 3.14 */
-
#ifdef _MSC_VER
/**
* Almost POSIX compliant implementation of \c vsnprintf for VC compiler.