Removed unreferenced variables. Refs #7637.