From 99452c51ce8c9042e900c02be206c469f85660e6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 24 Apr 2014 18:40:16 +0000 Subject: (svn r26500) -Cleanup: remove unused snprintf implementation --- src/stdafx.h | 1 - src/string.cpp | 14 -------------- 2 files changed, 15 deletions(-) (limited to 'src') 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. -- cgit v1.2.3-54-g00ecf