From d5d023f683b23fe26ddea93738cb721d532804f0 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Thu, 14 Jun 2012 16:22:13 +0000 Subject: another portion of "#ifsef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/ircproto.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/IRCG/ircproto.cpp') diff --git a/protocols/IRCG/ircproto.cpp b/protocols/IRCG/ircproto.cpp index 1d72f2ac88..f167eddad6 100644 --- a/protocols/IRCG/ircproto.cpp +++ b/protocols/IRCG/ircproto.cpp @@ -859,12 +859,7 @@ int __cdecl CIrcProto::SendMsg( HANDLE hContact, int flags, const char* pszSrc ) else result = mir_a2t_cp( pszSrc, codepage ); } else if ( flags & PREF_UTF ) { - #if defined( _UNICODE ) - mir_utf8decode( NEWSTR_ALLOCA(pszSrc), &result ); - #else - result = mir_strdup( pszSrc ); - mir_utf8decodecp( result, codepage, NULL ); - #endif + mir_utf8decode( NEWSTR_ALLOCA(pszSrc), &result ); } else result = mir_a2t_cp( pszSrc, codepage ); -- cgit v1.2.3