Daryl Posted October 29, 2009 Report Share Posted October 29, 2009 (edited) Ok, so I am cleaning up some code in a fairly large project and I was wondering if there is a way to find unused elements in a project file? I have consolidated a bunch of data from FG's and Labview Globals into clusters and shift registers and was wondering if there was a quick easy way to find/delete the stuff that isn't being used anymore? Edited October 29, 2009 by Daryl Quote Link to comment
Popular Post ShaunR Posted October 29, 2009 Popular Post Report Share Posted October 29, 2009 Ok, so I am cleaning up some code in a fairly large project and I was wondering if there is a way to find unused elements in a project file? I have consolidated a bunch of data from FG's and Labview Globals into clusters and shift registers and was wondering if there was a quick easy way to find/delete the stuff that isn't being used anymore? If you right click on the project name in the project tree, there is an option to "Find Items With No Callers". 3 Quote Link to comment
Daryl Posted October 29, 2009 Author Report Share Posted October 29, 2009 If you right click on the project name in the project tree, there is an option to "Find Items With No Callers". Awesome, thank you! Quote Link to comment
Cat Posted October 30, 2009 Report Share Posted October 30, 2009 Shaun! You got a point! Quote Link to comment
ShaunR Posted October 30, 2009 Report Share Posted October 30, 2009 Shaun! You got a point! Woohoo. How many do I need for a prize Quote Link to comment
jcarmody Posted October 30, 2009 Report Share Posted October 30, 2009 If you right click on the project name in the project tree, there is an option to "Find Items With No Callers". For another point, is there a one-click way to delete them? Quote Link to comment
ShaunR Posted October 30, 2009 Report Share Posted October 30, 2009 For another point, is there a one-click way to delete them? Not that I know of. But I've got a "project cleaner" vi that does Quote Link to comment
jcarmody Posted November 11, 2009 Report Share Posted November 11, 2009 But I've got a "project cleaner" vi that does Would you share it? I have a project that I inherited from an outside contractor. I rewrote everything except the CAN driver and want to get the bloat out of the project. I have another project (from the same outside contractor, not coincidentally) in the same boat. Quote Link to comment
ShaunR Posted November 11, 2009 Report Share Posted November 11, 2009 (edited) Unfortunately its one I wrote for work (copyrights an' all that). But its not hard and you could probably knock up a straight forward one without bells and whistles (i.e compare vis in the project list with those in the directories) in about 1/2 an hour. Mine is quite slow, since it does a lot of checking (compares like the aforesaid and also loads up all vis and checks callers, callees, filepaths and compares duplicates etc) and gives me lists of vis on-disk but not in the project, in the project but in the wrong location, blah, blah. Oh. And I can choose to delete them Edited November 11, 2009 by ShaunR Quote Link to comment
Daryl Posted November 11, 2009 Author Report Share Posted November 11, 2009 Unfortunately its one I wrote for work (copyrights an' all that). But its not hard and you could probably knock up a straight forward one without bells and whistles (i.e compare vis in the project list with those in the directories) in about 1/2 an hour. Mine is quite slow, since it does a lot of checking (compares like the aforesaid and also loads up all vis and checks callers, callees, filepaths and compares duplicates etc) and gives me lists of vis on-disk but not in the project, in the project but in the wrong location, blah, blah. Oh. And I can choose to delete them Sounds like a business op. People send you their ugly projects, you clean 'em up and send them back for a small fee (or case of beer) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.