From c127f96ac860cdf251a5e43948c44c297c8390a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 12 Nov 2018 20:01:55 -0800 Subject: [PATCH] Cleanup. --- src/string.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/string.cpp b/src/string.cpp index dea7f18..e6b7179 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -1150,38 +1150,6 @@ namespace bx return size; } -#if 0 - -#if !BX_CRT_NONE -# include // vsnprintf -#endif // !BX_CRT_NONE - - int32_t vsnprintf(char* _out, int32_t _max, const char* _format, va_list _argList) - { - va_list argList; - va_copy(argList, _argList); - int32_t total = 0; -#if BX_CRT_NONE - total = vsnprintfRef(_out, _max, _format, argList); -#elif BX_CRT_MSVC - int32_t len = -1; - if (NULL != _out) - { - va_list argListCopy; - va_copy(argListCopy, _argList); - len = ::vsnprintf_s(_out, _max, size_t(-1), _format, argListCopy); - va_end(argListCopy); - } - total = -1 == len ? ::_vscprintf(_format, argList) : len; -#else - total = ::vsnprintf(_out, _max, _format, argList); -#endif // BX_COMPILER_MSVC - va_end(argList); - return total; - } - -#endif // 0 - int32_t snprintf(char* _out, int32_t _max, const char* _format, ...) { va_list argList;