Remove unused generate method