- int startCol = -1, endCol = -1;
- boolean delete = true;
- for (int i = 0; i < width; i++)
- {
- delete = true;
-
- for (j = 0; j < jSize; j++)
- {
- if (seqs[j].getLength() > i)
- {
- if (!jalview.util.Comparison.isGap(seqs[j].getCharAt(i)))
- {
- if(delete)
- endCol = i;
-
- delete = false;
- break;
- }
- }
- }
-
- if(delete && startCol==-1)
- {
- startCol = i;
- }
-
-
- if (!delete && startCol > -1)
- {
- deleteColumns(seqs, startCol, endCol);
- if (shiftrecord!=null) {
- shiftrecord.addShift(startCol, 1+endCol-startCol);
- }
- width -= (endCol - startCol);
- i -= (endCol - startCol);
- startCol = -1;
- endCol = -1;
- }
- }