Remove duplicates lines in a list

How does one go about removing duplicate lines/strings of text in a list?

My writing actions action group has an action to deduplicate lines in a draft.

TAD-Deduplicate All (Lines)
Deduplicates lines in the order they occur. i.e. only the first instance of the line will be retained.
This action does not sort the content.