Discussions related to Visual Prolog
User avatar
Ferenc Nagy
VIP Member
Posts: 215
Joined: 24 Apr 2007 12:26

Garbage collection from a project

Unread post 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?
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post 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).
Regards Thomas Linder Puls
PDC
Harrison Pratt
VIP Member
Posts: 439
Joined: 5 Nov 2000 0:01

Re: Garbage collection from a project

Unread post 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.
Post Reply