]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed test code
authorJulian Smart <julian@anthemion.co.uk>
Tue, 5 Oct 2010 06:33:34 +0000 (06:33 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 5 Oct 2010 06:33:34 +0000 (06:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xml/xml.cpp

index 7e4fdd5a99431d6c3b49144f35e0bb0407589c5c..3767c9dc30c1fefad21e4e5a433af6019b56641b 100644 (file)
@@ -798,14 +798,7 @@ bool OutputString(wxOutputStream& stream,
     wxUnusedVar(convMem);
     if ( !convFile )
         convFile = &wxConvUTF8;
-#if 1
-    // JACS test
-    const wxWX2MBbuf buf(str.mb_str(*convFile));
-    if (!buf.length())
-        return false;
-    
-    stream.Write((const char*)buf, strlen((const char*)buf));
-#else
+
     const wxScopedCharBuffer buf(str.mb_str(*convFile));
     if ( !buf.length() )
     {
@@ -815,8 +808,6 @@ bool OutputString(wxOutputStream& stream,
     }
 
     stream.Write(buf, buf.length());
-#endif
-
 #else // !wxUSE_UNICODE
     if ( convFile && convMem )
     {