code: def remove(self, hostport):
          
          assert hostport, "hostport is required"
          peer = self._peers.pop(hostport, None)
          peer_in_heap = peer and peer.index != -1
          if peer_in_heap:
              self.peer_heap.remove_peer(peer)
          return peer
docs: Delete the Peer for the given host port.
  
          Does nothing if a matching Peer does not exist.
  
          :returns: The removed Peer