Re: Tool to detect unused units
From: Franz-Leo Chomse (franz-leo.chomse_at_samac.de)
Date: 06/14/04
- Next message: Uros: "Re: ANN: CrossKylix v0.7 (public beta) released"
- Previous message: Christian Kaufmann: "Set Transparency in TGifImage"
- In reply to: Paul Breneman: "Re: Tool to detect unused units"
- Next in thread: Paul Breneman: "Re: Tool to detect unused units"
- Reply: Paul Breneman: "Re: Tool to detect unused units"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Jun 2004 13:19:12 +0200
>
>Here is a resource page about this issue:
> http://www.brenemanlabs.com/Uses.htm
>
>There are three tools listed near the bottom of that page.
Caveat.
There are cases in which these tools mark needed units as unused.
These tools define "unused" as not needed for compilation, but there
are cases in which this is not equivalent as "not needed for the
application"
1. Secondary usage of uses clause.
This is the case with the uses clause in the project file. The uses
clause is used by the IDE to determine the units, datamodules and
forms belonging to the project. Removing "unused" units will remove
entries from the unit and forms list of the IDE
2. Indirect usage
In this case contents of the unit is not used directly, but via a
ancestor type or by using the factory or builder pattern.
You need to be careful by any unit which has an used initialization
package or an interface section only containing
"this section intentionally left blank"
3. IDE interference
To assure that all class definitions needed for the streaming support
of the IDE (*.DFM or *.XFM) the IDE sometimes adds the units
containing parts of a complete hierarchy stream into to uses clause
of the interface part of a unit containing a form or data module
descendant. In this case removed "unused" units are forced back again.
If a unit has been moved to the implementation section, this will
trigger an compilation error later on
Regards from Germany
Franz-Leo
.
- Next message: Uros: "Re: ANN: CrossKylix v0.7 (public beta) released"
- Previous message: Christian Kaufmann: "Set Transparency in TGifImage"
- In reply to: Paul Breneman: "Re: Tool to detect unused units"
- Next in thread: Paul Breneman: "Re: Tool to detect unused units"
- Reply: Paul Breneman: "Re: Tool to detect unused units"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|