public synchronized boolean removePooledConnection(PooledConnection conn){
  if (conns.remove(new ConnectionDesc(conn))) {
    d("remove(): ",conn);
    notifyAll();
    d("remove(): notify");
    td("Remove ",conn);
    if (conns.isEmpty()) {
      ref=null;
    }
    return true;
  }
 else {
    d("remove(): not found ",conn);
    return false;
  }
}

public synchronized boolean removePooledConnection ( PooledConnection conn ) { if ( conns . remove ( new ConnectionDesc ( conn ) ) ) { d ( "remove(): " , conn ) ; notifyAll ( ) ; d ( "remove(): notify" ) ; td ( "Remove " , conn ) ; if ( conns . isEmpty ( ) ) { ref = null ; } return true ; } else { d ( "remove(): not found " , conn ) ; return false ; } }
removes pooledconnection from list of connections . the closing of the connection is separate from this method . this method is called usually when the caller encouters an error when using the connection and wants it removed from the pool .
