aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-09-15 20:17:21 +0000
committerPJ Fanning <fanningpj@apache.org>2017-09-15 20:17:21 +0000
commit99c846e6910a5791dc786cff16212b4efa34da54 (patch)
treeb834e27a8f8e07a737d88290fb91204f3e05155b /src
parentfe5b6c4671c3d6df7eb6619753b1d70303002daa (diff)
downloadpoi-99c846e6910a5791dc786cff16212b4efa34da54.tar.gz
poi-99c846e6910a5791dc786cff16212b4efa34da54.zip
remove some deprecated code slated for removal in 3.18
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808483 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/ddf/EscherContainerRecord.java12
-rw-r--r--src/java/org/apache/poi/hpsf/VariantSupport.java27
-rw-r--r--src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java17
3 files changed, 0 insertions, 56 deletions
diff --git a/src/java/org/apache/poi/ddf/EscherContainerRecord.java b/src/java/org/apache/poi/ddf/EscherContainerRecord.java
index b09fb855c9..82ae37481c 100644
--- a/src/java/org/apache/poi/ddf/EscherContainerRecord.java
+++ b/src/java/org/apache/poi/ddf/EscherContainerRecord.java
@@ -27,7 +27,6 @@ import org.apache.poi.util.HexDump;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Escher container records store other escher records as children.
@@ -154,17 +153,6 @@ public final class EscherContainerRecord extends EscherRecord implements Iterabl
/**
* @return an iterator over the child records
- * @deprecated POI 3.16 beta 1. use iterator() or loop over the container record instead,
- * e.g. "for (EscherRecord r : container) ..."
- */
- @Removal(version="3.18")
- @Deprecated
- public Iterator<EscherRecord> getChildIterator() {
- return iterator();
- }
-
- /**
- * @return an iterator over the child records
*/
@Override
public Iterator<EscherRecord> iterator() {
diff --git a/src/java/org/apache/poi/hpsf/VariantSupport.java b/src/java/org/apache/poi/hpsf/VariantSupport.java
index 61e6bb8db9..373d5df392 100644
--- a/src/java/org/apache/poi/hpsf/VariantSupport.java
+++ b/src/java/org/apache/poi/hpsf/VariantSupport.java
@@ -25,13 +25,11 @@ import java.util.Date;
import java.util.LinkedList;
import java.util.List;
-import org.apache.poi.util.CodePageUtil;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.LittleEndianByteArrayInputStream;
import org.apache.poi.util.LittleEndianConsts;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Supports reading and writing of variant data.<p>
@@ -257,31 +255,6 @@ public class VariantSupport extends Variant {
}
/**
- * Turns a codepage number into the equivalent character encoding's
- * name.
- *
- * @param codepage The codepage number
- *
- * @return The character encoding's name. If the codepage number is 65001,
- * the encoding name is "UTF-8". All other positive numbers are mapped to
- * "cp" followed by the number, e.g. if the codepage number is 1252 the
- * returned character encoding name will be "cp1252".
- *
- * @exception UnsupportedEncodingException if the specified codepage is
- * less than zero.
- *
- * @deprecated POI 3.16 - use {@link CodePageUtil#codepageToEncoding(int)}
- */
- @Deprecated
- @Removal(version="3.18")
- public static String codepageToEncoding(final int codepage)
- throws UnsupportedEncodingException
- {
- return CodePageUtil.codepageToEncoding(codepage);
- }
-
-
- /**
* Writes a variant value to an output stream. This method ensures that
* always a multiple of 4 bytes is written.<p>
*
diff --git a/src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java b/src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java
index df216c0714..3601e01022 100644
--- a/src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java
+++ b/src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java
@@ -16,8 +16,6 @@
==================================================================== */
package org.apache.poi.poifs.crypt;
-import org.apache.poi.util.Removal;
-
/**
* Used when checking if a key is valid for a document
*/
@@ -50,21 +48,6 @@ public abstract class EncryptionVerifier implements Cloneable {
return spinCount;
}
- /**
- * @deprecated POI 3.16 beta 1. use {@link #getChainingMode()}
- */
- @Removal(version="3.18")
- public int getCipherMode() {
- return chainingMode.ecmaId;
- }
-
- /**
- * @deprecated POI 3.16 beta 1. use {@link #getCipherAlgorithm()}
- */
- public int getAlgorithm() {
- return cipherAlgorithm.ecmaId;
- }
-
public byte[] getEncryptedKey() {
return encryptedKey;
}