From 4aa6229698b946e52ce19018aaf13f8b92fb168e Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 15 Jun 2012 14:13:45 +0000 Subject: another portion of "#ifsef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/langpack/langpack.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/modules/langpack/langpack.cpp') diff --git a/src/modules/langpack/langpack.cpp b/src/modules/langpack/langpack.cpp index 71b0dddaf9..aaa02ec52c 100644 --- a/src/modules/langpack/langpack.cpp +++ b/src/modules/langpack/langpack.cpp @@ -449,16 +449,12 @@ TCHAR* LangPackPcharToTchar( const char* pszStr ) if ( pszStr == NULL ) return NULL; - #if defined( _UNICODE ) { int len = (int)strlen( pszStr ); TCHAR* result = ( TCHAR* )alloca(( len+1 )*sizeof( TCHAR )); MultiByteToWideChar( LangPackGetDefaultCodePage(), 0, pszStr, -1, result, len ); result[len] = 0; return mir_wstrdup( TranslateW( result )); } - #else - return mir_strdup( Translate( pszStr )); - #endif } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3