<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_service_listener(self, listener):
 """Removes a listener from the set that is currently listening."""

        for browser in self.browsers:
            if browser.listener == listener:
                browser.cancel()
                del(browser)