From: Peter C. <Pet...@me...> - 2005-05-12 13:53:52
|
> From: Alexis O'Connor=20 > an...@sm... wrote: > > Is there a tool that rips out imports/variables that aren't > > referenced?! I believe the most appropriate tool is the Mk.I developer, as it typically has to make value judgements on surrounding code as well. > The compiler can be configured to give=20 > warnings regarding unused variables. ... and possibly should be configured as such by default. We saw a decrease in defects introduced during maintenance in a legacy C++ project when we turned on all the warnings in the compiler and spent the effort in clearing up the existing warnings. Unfortunately we were too naive to measure the decrease, so I can't tell you any numbers :-(. - Peter |