Uses Units Cleaner |
Uses Units Cleaner
This wizard is used to remove the unused reference units in 'uses' part. Only Delphi is supported now.
When a component is put into form in design time, the units which contains the component will be added into uses part automatically. But NO removing when component is removing. This wizard can search the uses part and analyze them to list the possible unused reference units to clean.
The dialog is shown as below:
Content and Clean Settings:
Current Unit: Search current unit.
Opened Units in Current ProjectGroup: Search opened units in current ProjectGroup.
All Units in Current Project: Search all units in current project.
All Units in Current ProjectGroup: Search all units in current ProjectGroup.
Include Indirectly Used Units: If checked, uses cleaner will process the indirectly used units with source, not only in Project or ProjectGroup.
Skip Used Units including Initialization Part: Whether skip those units which contain initialization part in searching. The part may contains some initialization operations and removing the reference may cause problems.
Skip Used Units including Register Procedure.: Whether skip those units which contain Register procedure in searching. This procedure may contain component register content.
Skip Used Units Refered by Component Indirectly.: Whether skip those units which refered by component indirectly, such as ancestor definitions or components in other forms.
Skip Used Units without Source: Whether skip those units without source code in searching.
Auto Save/Close Unopened Files: Defaultly, our wizard will open files in IDE and do the file changes without saving and close. It will cause memory exhausted when meeting huge project. If this option checked, our wizard will auto save and close file after processing and can't undo the change.
Clean Units Directly: Clean the units below directly.
Skip Units Directly: Skip the units below directly. They're almost system units.
Process: Search unused reference units according to the settings.
Cancel: Close this window and DO NOT clean.
Help: Show this help.
Uses Units Cleaner Scan Result
After you click the 'Process' button. This wizard will compile current content and search and list the result in a treeview as below. The checked units are those can be cleaned. You can confirm or discard them. The unchecked units are already skipped by some settings.
Clean: Remove the checked reference units.
Cancel: Close this window and DO NOT clean.
Help: Show this help.
Links