(self, address: int, size: int)
Remove a block, specified by (address, size), in this segment list.

        :param address: The starting address of the block.
        :param size:    Size of the block.
Remove a block, specified by (address, size), in this segment list.
Remove a block specified by ( address size ) in this segment list .
def release(self, address: int, size: int) -> None:
        """
        Remove a block, specified by (address, size), in this segment list.

        :param address: The starting address of the block.
        :param size:    Size of the block.
        """

        if size is None or size <= 0:
            # cannot release a non-existent block
            return
        if not self._list:
            return

        idx = self.search(address)
        if idx < len(self._list):
            self._remove(address, size, idx)
def release ( self , address : int , size : int ) -> None : if size is None or size <= 0 : # cannot release a non-existent block return if not self . _list : return idx = self . search ( address ) if idx < len ( self . _list ) : self . _remove ( address , size , idx )