On Fri, 3 Oct 2014 01:44:31 +0300 Juha Manninen <[email protected]> wrote:
> On Fri, Oct 3, 2014 at 1:24 AM, Martin Frb <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
