title: Tool for removing unused local variables in Fortran code
body: <p>Is there some good tool for removing unused local variables from free form Fortran code?</p>
  
  <p>The background is that we have a codebase which is very large, and unused warnings has been disabled for the last 20 years, so there are quite a lot of them, too many to fix manually.</p>
  
  <p>I know Photran has that kind of refactoring, but I tried it and ran into problems. For some reason it requires that the entire source code can be parsed (which it does not manage to do with our codebase) to do the refactoring, although for this refactoring it should IMO be enough to just check single files. </p>