codetools: finding unused units: procedures

git-svn-id: trunk@19288 -
This commit is contained in:
mattias 2009-04-09 13:17:59 +00:00
parent fe3b0c86d2
commit 8b2cde0cb6

View File

@ -1453,6 +1453,11 @@ var
if IsIdentifierUsed(Node.StartPos) then exit;
ctnVarDefinition,ctnConstDefinition,ctnTypeDefinition:
if IsNodeVisible(Node) and IsIdentifierUsed(Node.StartPos) then exit;
ctnProcedure:
if (Node.Parent.Desc=ctnInterface)
and (Node.FirstChild<>nil)
and (Node.FirstChild.Desc=ctnProcedureHead)
and IsIdentifierUsed(Node.FirstChild.StartPos) then exit;
end;
Node:=Node.Next;
end;