]> source.dussan.org Git - poi.git/commitdiff
remove more deprecated methods
authorPJ Fanning <fanningpj@apache.org>
Wed, 12 Jul 2017 08:38:20 +0000 (08:38 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 12 Jul 2017 08:38:20 +0000 (08:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801697 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/DBCellRecord.java
src/java/org/apache/poi/ss/format/CellFormat.java
src/ooxml/java/org/apache/poi/xssf/model/StylesTable.java

index c4080f0ad2f5e7a011a03c1e120ffed883104a2a..ddcc56fe8acb04e80316986b5fbd166ac27cb56b 100644 (file)
@@ -98,22 +98,6 @@ public final class DBCellRecord extends StandardRecord implements Cloneable {
     protected int getDataSize() {
         return 4 + field_2_cell_offsets.length * 2;
     }
-    
-    /**
-     * @param nBlocks number of blocks
-     * @param nRows number of rows
-     * 
-     * @return the size of the group of <tt>DBCellRecord</tt>s needed to encode
-     *         the specified number of blocks and rows
-     * 
-     * @deprecated in POI 3.15-beta2, scheduled for removal in POI 3.17 - this method is not used within POI
-     */
-    public static int calculateSizeOfRecords(int nBlocks, int nRows) {
-        // One DBCell per block.
-        // 8 bytes per DBCell (non variable section)
-        // 2 bytes per row reference
-        return nBlocks * 8 + nRows * 2;
-    }
 
     public short getSid() {
         return sid;
index 76749b871fc6e7f585666f66b1ea18290d925620..8f67164d74d3c4c65175f3ad52a636da38eb4506 100644 (file)
@@ -37,6 +37,7 @@ import org.apache.poi.ss.usermodel.DataFormatter;
 import org.apache.poi.ss.usermodel.DateUtil;
 import org.apache.poi.ss.util.DateFormatConverter;
 import org.apache.poi.util.LocaleUtil;
+import org.apache.poi.util.Removal;
 
 /**
  * Format a value according to the standard Excel behavior.  This "standard" is
@@ -123,6 +124,8 @@ public class CellFormat {
      * used when the format specified is <tt>General</tt>.
      * @deprecated use {@link #getInstance(Locale, String)} instead
      */
+    @Deprecated
+    @Removal(version="3.18")
     public static final CellFormat GENERAL_FORMAT = createGeneralFormat(LocaleUtil.getUserLocale());
             
     private static CellFormat createGeneralFormat(final Locale locale) {
index 334e841e4f16a6ad5c885299e537a31f24aee08b..0b924a66e04d4827429f1361d704d3de9ddeb130 100644 (file)
@@ -558,15 +558,6 @@ public class StylesTable extends POIXMLDocumentPart {
     public int getNumDataFormats() {
         return numberFormats.size();
     }
-    
-    /**
-     * For unit testing only
-     * @deprecated POI 3.14 beta 2. Use {@link #getNumDataFormats()} instead.
-     */
-    @Internal
-    public int _getNumberFormatSize() {
-        return getNumDataFormats();
-    }
 
     /**
      * For unit testing only