]> git.saurik.com Git - wxWidgets.git/commitdiff
removed wxUSE_STRUTILS which was left over from the old code version
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2007 18:00:15 +0000 (18:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2007 18:00:15 +0000 (18:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxprintf.cpp

index ee415e8bac9f2b3f56d21ca512602f196008bf87..f1b2d3914a817e07259cfd2739e4817574498a22 100644 (file)
@@ -60,23 +60,6 @@ using namespace std ;
 
 #if !defined(wxCRT_VsnprintfW) || !defined(wxCRT_VsnprintfA)
 
-// wxUSE_STRUTILS says our wxCRT_VsnprintfW implementation to use or not to
-// use wxStrlen and wxStrncpy functions over one-char processing loops.
-//
-// Some benchmarking revealed that wxUSE_STRUTILS == 1 has the following
-// effects:
-// -> on Windows:
-//     when in ANSI mode, this setting does not change almost anything
-//     when in Unicode mode, it gives ~ 50% of slowdown !
-// -> on Linux:
-//     both in ANSI and Unicode mode it gives ~ 60% of speedup !
-//
-#if defined(WIN32) && wxUSE_UNICODE
-#define wxUSE_STRUTILS      0
-#else
-#define wxUSE_STRUTILS      1
-#endif
-
 // some limits of our implementation
 #define wxMAX_SVNPRINTF_ARGUMENTS         64
 #define wxMAX_SVNPRINTF_FLAGBUFFER_LEN    32