The next update to the Unused Variables application has just been posted to vdf-guidance.com.

For this I've added a view for the removal of any and all unused variables that appear in the log file, in either single or batch mode.

When this new mode is chosen all "cleaned" source code is written to a "clean" folder below the one being processed. That way you can confirm the app isn't decimating your code before you move it to the source folder and overwrite what took you so long to write.

Two bugs were fixed in the variable checking process
1. String [] where there's a space between "String" and the brackets. This variable can be written either way, with or without the spaces and the process failed if there was a space present.
2. If a line of code contained a URL such as "http://SomeURL.com" the two slashes were taken as a DF comment and the rest of the line was ignored.

One of the test cases I used was a middling sized application which fixed 499 code files, just in case you're looking for some reassurance that the "removal" process works.

Read the help! It explains all in detail.

And finally, thanks to Hans van de Laar for testing and some good ideas.