def removeDuplicates(li: list) -> list:
    """
    Removes Duplicates from history file

    Args:
        li(list): list of history entries

    Returns:
        list: filtered history entries
    """
    visited = set()
    output = []
    for a, b, c, d in li:
        if b not in visited:
            visited.add(b)
            output.append((a, b, c, d))
    return output