LazUtils: remove legacy code for the 2.6.0 compiler.

git-svn-id: trunk@50496 -
This commit is contained in:
bart 2015-11-24 14:06:50 +00:00
parent 45d9a68904
commit 094b14ce22
2 changed files with 0 additions and 28 deletions

View File

@ -656,21 +656,6 @@ begin
Result := Integer(GetLastError);
end;
//fpc 2.6.0 does not have StrLen for WideChar.
//Remove this when we have 2.6.4 or higher
{$if FPC_FULLVERSION < 20602}
function StrLen(PW: PWideChar): SizeInt; overload;
var
i: SizeInt;
begin
i:=0;
if assigned(PW) then
while (PW[i] <> #0) do inc(i);
Result := i;
end;
{$endif}
{$IFDEF WINCE}
// In WinCE these API calls are in Windows unit
function GetWindowsSpecialDirW(ID : Integer) : String;

View File

@ -37,19 +37,6 @@ end;
//*************** START WideString impementations
//fpc 2.6.0 does not have StrLen for WideChar.
//Remove this when we have 2.6.4 or higher
{$if FPC_FULLVERSION < 20602}
function StrLen(PW: PWideChar): SizeInt; overload;
var
i: SizeInt;
begin
i:=0;
if assigned(PW) then
while (PW[i] <> #0) do inc(i);
Result := i;
end;
{$endif}
{$IF (FPC_FULLVERSION >= 30000) AND NOT DEFINED(DisableUTF8RTL) AND NOT DEFINED(WINCE)}
procedure SetupArgvAsUtf8;