[Lazarus] Request feature?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Oct 3 09:27:23 CEST 2014


On Fri, 3 Oct 2014 01:44:31 +0300
Juha Manninen <juha.manninen62 at gmail.com> wrote:

> On Fri, Oct 3, 2014 at 1:24 AM, Martin Frb <lazarus at mfriebe.de> wrote:
> > There is also an entry in "Refactoring" (pop up, or Menu: Source)
> > "Unused Units" (Though (iirc) it in only 99% accurate)
> 
> It is not accurate when a unit has an initialization section. Then the
> unit is most likely needed by the project but it is reported as
> "unused".

The units with initialization/finalization sections are shown with a
battery like icon, while those without are shown with a book icon.

Feel free to improve it with a checkbox "hide units with
initialization/finalization sections".


> I guess it is difficult to analyse the real "used" status then.

What Martin means with 99% is the following:
If two units provides an identifier with the same name, the tool does
not check which identifier is used and treat both units as used.

Mattias





More information about the Lazarus mailing list