Skip to content

Commit 49e4ebb

Browse files
committed
Minor changes to clear all compiler warnings (no logic changes)
1 parent ab1bdf2 commit 49e4ebb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

HtmlParserEx.pas

+2-8
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ function _aoIncludeWord(const Item:TAttrSelectorItem; E:THtmlElement):Boolean;
416416
function _aoBeginWord(const Item:TAttrSelectorItem; E:THtmlElement):Boolean;
417417
var
418418
S:TStringDynArray;
419-
I:Integer;
420419
begin
421420
Result := false;
422421
if not E.FAttributes.ContainsKey(Item.Key) then
@@ -567,7 +566,6 @@ function CreateCommentElement(AOwner:THtmlElement; AText:string; ALine, ACol:Int
567566

568567
function CreateTagElement(AOwner:THtmlElement; AText:string; ALine, ACol:Integer):THtmlElement;
569568
var
570-
Strs:TStringDynArray;
571569
I:Integer;
572570
Attrs:TAttributeDynArray;
573571
begin
@@ -710,7 +708,6 @@ procedure _ParserHTML(const Source:string; AElementList:THtmlElementList);
710708
PreIsblique:Boolean;
711709
begin
712710
oldIndex := sc.CharIndex;
713-
stringChar := #0;
714711
sc.SkipBlank();
715712
if sc.subStr(4) = '<!--' then
716713
begin
@@ -812,7 +809,6 @@ procedure _ParserHTML(const Source:string; AElementList:THtmlElementList);
812809
sc.setCode(Source);
813810
while sc.CharIndex <= high(sc.SourceCode) do
814811
begin
815-
ElementType := EtUnknow;
816812
OldCodeIndex := sc.CharIndex;
817813
BeginLineNum := sc.LineNum;
818814
BeginColNum := sc.ColNum;
@@ -980,7 +976,6 @@ function BuildTree(ElementList:THtmlElementList):THtmlElement;
980976
E:THtmlElement;
981977
T:THtmlElement;
982978
FoundIndex:Integer;
983-
TagProperty:WORD;
984979
begin
985980
Result := THtmlElement.Create(nil, '', 0, 0);
986981
Result.FTagName := '#DOCUMENT';
@@ -990,7 +985,7 @@ function BuildTree(ElementList:THtmlElementList):THtmlElement;
990985
while I < ElementList.Count do
991986
begin
992987
E := ElementList[I] as THtmlElement;
993-
TagProperty := GetTagProperty(E.FTagName);
988+
//TagProperty := GetTagProperty(E.FTagName);
994989
// Empty node, look down, if the next node with Tag is not its closed node, then automatically close
995990
FoundIndex := -1;
996991
if E.FIsCloseTag then
@@ -1245,7 +1240,7 @@ function ConvertWhiteSpace(S:string):string;
12451240

12461241
function GetTagProperty(const TagName:string):WORD;
12471242
var
1248-
Key, S:string;
1243+
Key:string;
12491244
begin
12501245
Result := 0;
12511246
Key := UpperCase(TagName);
@@ -1426,7 +1421,6 @@ function ParserCSSSelector(const Value:string):TCSSSelectorItemGroup;
14261421

14271422

14281423
var
1429-
Tag:string;
14301424
pitems:PCSSSelectorItems;
14311425
pItem:PCSSSelectorItem;
14321426
begin

0 commit comments

Comments
 (0)