Remove an unused local variable and add a function to edit matching
files.