Remove unreferenced local variables (thanks Gordon for the report)