public void removeSeries(int index){
  TimeSeries series=getSeries(index);
  if (series != null) {
    removeSeries(series);
  }
}

public void removeSeries ( int index ) { TimeSeries series = getSeries ( index ) ; if ( series != null ) { removeSeries ( series ) ; } }
removes a series from the collection .
