mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:16:06 +02:00
TurboPower_ipro: Remove useless code from TIpHtmlParser.ParseHead.
This commit is contained in:
parent
aecb1d9473
commit
4a639e70c5
@ -1594,8 +1594,6 @@ begin
|
||||
end;
|
||||
|
||||
procedure TIpHtmlParser.ParseHead(AParent: TIpHtmlNode);
|
||||
var
|
||||
L: TStringListUTF8Fast;
|
||||
begin
|
||||
{lead token is optional}
|
||||
if FCurToken = IpHtmlTagHEAD then begin
|
||||
@ -1604,15 +1602,8 @@ begin
|
||||
if FCurToken = IpHtmlTagHEADend then
|
||||
NextToken;
|
||||
end;
|
||||
|
||||
L := TStringListUTF8Fast.Create;
|
||||
try
|
||||
GetSupportedEncodings(L);
|
||||
if L.IndexOf(FDocCharset) = 0 then // clear for UTF-8 to avoid conversion
|
||||
FDocCharset := '';
|
||||
finally
|
||||
L.Free;
|
||||
end;
|
||||
if SameText(FDocCharset, 'UTF-8') then // clear for UTF-8 to avoid conversion
|
||||
FDocCharset := '';
|
||||
end;
|
||||
|
||||
procedure TIpHtmlParser.ParseHeader(AParent: TIpHtmlNode; EndToken: TIpHtmlToken;
|
||||
|
Loading…
Reference in New Issue
Block a user