Page 1 of 1

Garbage collection from a project

Posted: 26 Mar 2015 10:36
by Ferenc Nagy
How can I erase the files which are no longer used in a project?
Is there any utility which lists the files referenced in a project file and/or all subordinated *.ph and *.pack files and compares it with the list of the files of the project folder and its subfolder?

Posted: 26 Mar 2015 10:52
by Thomas Linder Puls
If you right click your project folder (in the IDE vip 7.5) you can select Analysis & Refactor -> View Unused Items.

Be sure to have a back-up before playing with things like this. Also only trust the information it the window if you program can build (in fact it may be a good idea to start with a Rebuild all).

Re: Garbage collection from a project

Posted: 26 Mar 2015 14:02
by Harrison Pratt
Ferenc Nagy wrote:How can I erase the files which are no longer used in a project?
I open Windows explorer (right click on one of the items to delete), rename the files to be deleted (e.g., from myTools.pro to myTools. pro deleted). As soon as I do that, the IDE marks the files with a red X. When you rebuild the project the files are deleted from the project tree. They can be moved to another directory or deleted from the disk at another time of your convenience.