Jump to content
shineworld

Found and remove unused uses units

Recommended Posts

Hi all,

there is a fast way to identify and so remove the unused uses units ?
During the development process, often, I add the required uses to compile, but after months of development, some units could become unused

and I would like to remove them.

 

At moment, I need to comment one by one and check if the compiler raises an error for the missing unit.


Thank you in advance for reply!

 

Share this post


Link to post

Just comment out a line then save the file. The ones that are needed will be added at the end.

 

No compilation needed.

Share this post


Link to post
49 minutes ago, David Schwartz said:

Just comment out a line then save the file. The ones that are needed will be added at the end.

 

No compilation needed.

That's only true for the uses-clause entries that the form designer manages. (Which is a tiny fraction in my development.)

Edited by uligerhardt
  • Like 1

Share this post


Link to post
44 minutes ago, uligerhardt said:

That's only true for the uses-clause entries that the form designer manages. (Which is a tiny fraction in my development.)

ahh, well then use the Peganza Analyzer Lite. (It used to be called Icarus.) That's what it's for.

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×