This line is unnecessary since excess rows are automatically discarded by setRowCount() below. It also deletes the table headers which we want to keep.