<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_cron(self, client, event):
 """Remove a cron entry by event name."""

        for index, cron in enumerate(self.crons):
            if cron.event == event:
                _log.info("De-registering cron '%s'.", event)
                # Yes, we're modifying the list we're iterating over, but
                # we immediate stop iterating so it's okay.
                self.crons.pop(index)
                break
        return True