public void pruneZeroCounts ( ) { int i = 0 ; while ( i < rankedItems . size ( ) ) { if ( rankedItems . get ( i ) . getCount ( ) == 0 ) { rankedItems . remove ( i ) ; } else { i ++ ; } } }
Removes ranking entries that have a count of zero .