Generate a Python program to edit a given list of strings and remove the duplicates in-place.
["AB", "AC", "AB", "CD", "AC"]
list = ["AB", "AC", "AB", "CD", "AC"]

seen = set()
res = []

for item in list:
    if item in seen:
        continue
    seen.add(item)
    res.append(item)

list[:] = res

print(list)