From 0cdb0b966651b0934aa3932cf3037b22e04527b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 10 Apr 2007 13:37:27 +0000 Subject: [PATCH] removed unused CByteArrayFormat function git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/mbconv/mbconvtest.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tests/mbconv/mbconvtest.cpp b/tests/mbconv/mbconvtest.cpp index 8e8a95e5ec..7109ffb223 100644 --- a/tests/mbconv/mbconvtest.cpp +++ b/tests/mbconv/mbconvtest.cpp @@ -241,31 +241,6 @@ void MBConvTestCase::WC2CP1250() } } -// print an unsigned character array as a C unsigned character array -wxString CByteArrayFormat( const void* data, size_t len, const wxChar* name ) -{ - const unsigned char* bytes = (unsigned char*)data; - wxString result; - - result.Printf( _T("const static unsigned char %s[%i] = \n{"), name, (int)len ); - - for ( size_t i = 0; i < len; i++ ) - { - if ( i != 0 ) - { - result.append( _T(",") ); - } - if ((i%16)==0) - { - result.append( _T("\n ") ); - } - wxString byte = wxString::Format( _T("0x%02x"), bytes[i] ); - result.append(byte); - } - result.append( _T("\n};\n") ); - return result; -} - // The following bytes represent the same string, containing Japanese and English // characters, encoded in several different formats.