A more than 200-year-old law that punished people for not having homes has finally been repealed this week.