aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java b/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
index fcc592333b..c31de3e345 100644
--- a/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
+++ b/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
@@ -24,14 +24,11 @@ import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
-import java.util.Map.Entry;
-import java.util.TreeMap;
import org.apache.poi.ooxml.POIXMLDocumentPart;
import org.apache.poi.openxml4j.opc.PackagePart;
import org.apache.poi.ss.util.CellAddress;
import org.apache.poi.util.Internal;
-import org.apache.poi.util.Removal;
import org.apache.poi.xssf.usermodel.XSSFComment;
import org.apache.xmlbeans.XmlException;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment;
@@ -172,25 +169,6 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
}
/**
- * Returns all cell comments on this sheet.
- * @return A map of each Comment in this sheet, keyed on the cell address where
- * the comment is located.
- * @deprecated use <code>getCellAddresses</code> instead
- */
- @Removal(version = "4.2")
- @Deprecated
- public Map<CellAddress, XSSFComment> getCellComments() {
- prepareCTCommentCache();
- final TreeMap<CellAddress, XSSFComment> map = new TreeMap<>();
-
- for (final Entry<CellAddress, CTComment> e : commentRefs.entrySet()) {
- map.put(e.getKey(), new XSSFComment(this, e.getValue(), null));
- }
-
- return map;
- }
-
- /**
* Refresh Map<CellAddress, CTComment> commentRefs cache,
* Calls that use the commentRefs cache will perform in O(1)
* time rather than O(n) lookup time for List<CTComment> comments.