private void removePairs ( GvmCluster < S , K > cluster ) { GvmClusterPair < S , K > [ ] pairs = cluster . pairs ; for ( int i = 0 ; i < bound - 1 ; i ++ ) { GvmClusterPair < S , K > pair = pairs [ i ] ; if ( pair . c1 . removed || pair . c2 . removed ) continue ; this . pairs . remove ( pair ) ; } }
these are tidied when everything is made contiguous again