Remove unused generate filename code.