shineworld 73 Posted October 22, 2021 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
Uwe Raabe 2057 Posted October 22, 2021 Peganza Pascal Analyzer - the Lite version is even free. Share this post Link to post
David Schwartz 426 Posted October 22, 2021 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
uligerhardt 18 Posted October 22, 2021 (edited) 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 October 22, 2021 by uligerhardt 1 Share this post Link to post
David Schwartz 426 Posted October 22, 2021 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. 2 Share this post Link to post
shineworld 73 Posted October 22, 2021 Tried Peganza Analyzer Lite and that is what I need 🙂 1 Share this post Link to post