TurboPower_ipro: Remove useless code from TIpHtmlParser.ParseHead.

This commit is contained in:
Juha 2024-02-06 11:59:47 +02:00
parent aecb1d9473
commit 4a639e70c5

View File

@ -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
if SameText(FDocCharset, 'UTF-8') then // clear for UTF-8 to avoid conversion
FDocCharset := '';
finally
L.Free;
end;
end;
procedure TIpHtmlParser.ParseHeader(AParent: TIpHtmlNode; EndToken: TIpHtmlToken;