'Returns a list without duplicates based on the given ``list``.
Creates and returns a new list that contains all items in the given
list so that one item can appear only once. Order of the items in
the new list is the same as in the original except for missing
duplicates. Number of the removed duplicates is logged.
New in Robot Framework 2.7.5.'

def remove_duplicates(self, list_):

    ret = []
    for item in list_:
        if (item not in ret):
            ret.append(item)
    removed = (len(list_) - len(ret))
    logger.info(('%d    duplicate%s    removed.' % (removed, plural_or_not(removed))))
    return ret
