library/Rediska/KeyDistributor/Crc32.php
public function removeConnection($connectionString)
    {
        if (!in_array($connectionString, $this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("Connection '$connectionString' does not exist.");
        }
        
        $index = array_search($connectionString, $this->_connections);
        unset($this->_connections[$index]);
        $this->_connectionCount--;

        // remove connection positions
        $connectionPositions = $this->_connectionPositions;
        $this->_connectionPositions = array();
        $this->_connectionPositionCount = 0;
        foreach($connectionPositions as $connection) {
            if ($connection != $connectionString) {
                $this->_connectionPositions[] = $connection;
                $this->_connectionPositionCount++;
            }
        }

        return $this;
    }
public function removeConnection($connectionString)
    {
        if (!in_array($connectionString, $this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("Connection '$connectionString' does not exist.");
        }
        
        $index = array_search($connectionString, $this->_connections);
        unset($this->_connections[$index]);
        $this->_connectionCount--;

        // remove connection positions
        $connectionPositions = $this->_connectionPositions;
        $this->_connectionPositions = array();
        $this->_connectionPositionCount = 0;
        foreach($connectionPositions as $connection) {
            if ($connection != $connectionString) {
                $this->_connectionPositions[] = $connection;
                $this->_connectionPositionCount++;
            }
        }

        return $this;
    }
(non-PHPdoc)
@see Rediska_KeyDistributor_Interface#removeConnection