public void removeConnection(Connection conn){
  int removalIndex=findConnection(conn);
  if (removalIndex != -1) {
    mConnections.remove(removalIndex);
  }
}

public void removeConnection ( Connection conn ) { int removalIndex = findConnection ( conn ) ; if ( removalIndex != - 1 ) { mConnections . remove ( removalIndex ) ; } }
remove the given connection from this list .
