Bug 328794 Remove unused variable in 'org.eclipse.swt.examples'
HEAD. Remove unused variable in 'org.eclipse.swt.examples'.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableItem.java
}
	}
	String text = getText (columnIndex, false);
	int textWidth = gc.stringExtent (text).x;
	if (textWidth <= availableWidth) {
		displayTexts [columnIndex] = text;
		textWidths [columnIndex] = textWidth;
		return;
	}
	
	int ellipsisWidth = gc.stringExtent (CTable.ELLIPSIS).x;
	availableWidth -= ellipsisWidth;
	if (availableWidth <= 0) {
		displayTexts [columnIndex] = CTable.ELLIPSIS;
		textWidths [columnIndex] = ellipsisWidth;
		return;
	}
	
	int index = Math.min (availableWidth / gc.getFontMetrics ().getAverageCharWidth (), text.length ());
	textWidth = gc.stringExtent (text.substring (0, index)).x;
	
	if (availableWidth == textWidth) {
		displayTexts [columnIndex] = text.substring (0, index) + CTable.ELLIPSIS;
		textWidths [columnIndex] = textWidth + ellipsisWidth;
		return;
	}
	
	if (availableWidth < textWidth) {
		do {
			index--;