Removes unused local variables.