From a937271d53887bb7e6c187dca07b7efbcc48a828 Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 4 Dec 2014 16:11:59 +0000 Subject: [PATCH] lazutils: paswstring: clean up git-svn-id: trunk@47095 - --- components/lazutils/paswstring.pas | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/lazutils/paswstring.pas b/components/lazutils/paswstring.pas index 658316893e..538df7f852 100644 --- a/components/lazutils/paswstring.pas +++ b/components/lazutils/paswstring.pas @@ -339,11 +339,8 @@ begin // Copy the originating string taking into account the specified length SetLength(ansistr, len); System.Move(source^, ansistr[1], len); - - {$ifdef PASWSTRING_SUPPORT_NONUTF8_ANSISTRING} // Convert to UTF-8 ansistr := ConvertEncoding(ansistr, GetDefaultTextEncoding(), EncodingUTF8); - {$endif} // Now convert it, using UTF-8 -> UTF-16 dest := UTF8ToUTF16(ansistr); end else begin