shineworld 85 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 2147 Posted October 22, 2021 Peganza Pascal Analyzer - the Lite version is even free. Share this post Link to post
David Schwartz 442 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 19 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 442 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 85 Posted October 22, 2021 Tried Peganza Analyzer Lite and that is what I need 🙂 1 Share this post Link to post