delphiuses-clause

How can I identify and get rid of unused units in the "uses clause" in Delphi 7?


This should reduce the executable size quite a bit in some of my very large projects. I am sure there would be other benefits too.

EDIT: Is there perhaps a utility that will scan the project and remove redundant ones automatically? I do have 100s of projects and "automatic remove" would be first prize although if I have to I will go the manual way with the help of identifying utilities.


Solution

  • You might want to take a look at at CnPack.

    CnPack includes a Uses cleaner wizard wich hasn't failed me yet.