diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java b/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java index 7c0851a42e..d05480dbf1 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java @@ -163,122 +163,121 @@ public class HSSFOptimiser { } } - /** - * Goes through the Wokrbook, optimising the cell styles - * by removing duplicate ones, and ones that aren't used. - * For best results, optimise the fonts via a call to - * {@link #optimiseFonts(HSSFWorkbook)} first. - * @param workbook The workbook in which to optimise the cell styles - */ - public static void optimiseCellStyles(HSSFWorkbook workbook) { - // Where each style has ended up, and if we need to - // delete the record for it. Start off with no change - short[] newPos = - new short[workbook.getWorkbook().getNumExFormats()]; - boolean[] isUsed = new boolean[newPos.length]; - boolean[] zapRecords = new boolean[newPos.length]; - for(int i=0; i