mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-19 22:29:37 +01:00
codetools: finding unused units: procedures
git-svn-id: trunk@19288 -
This commit is contained in:
parent
fe3b0c86d2
commit
8b2cde0cb6
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user