What is the meaning of when the reason of the law ceases the law ceases?

An example would be:

  • It is illegal to shoot passenger pigeons.
  • Passenger pigeons are extinct.
  • Therefore, the law ceases to have any affect.