It's there to remove the ```<li>``` element in the user interface. That could probably be done without calling ```cancel(...)```