From f11bb182e9548a6260f2883260c884e3758f529b Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 12 Jul 2017 08:15:44 +0000 Subject: [PATCH] remove deprecated methods from CommentsTable git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801692 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xssf/model/CommentsTable.java | 56 ------------------- 1 file changed, 56 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 aca3834e7..cfc82cd0d 100644 --- a/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java @@ -89,15 +89,6 @@ public class CommentsTable extends POIXMLDocumentPart { out.close(); } - /** - * Called after the reference is updated, so that - * we can reflect that in our cache - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #referenceUpdated(CellAddress, CTComment)} instead - */ - public void referenceUpdated(String oldReference, CTComment comment) { - referenceUpdated(new CellAddress(oldReference), comment); - } - /** * Called after the reference is updated, so that * we can reflect that in our cache @@ -133,17 +124,6 @@ public class CommentsTable extends POIXMLDocumentPart { return addNewAuthor(author); } - /** - * Finds the cell comment at cellAddress, if one exists - * - * @param cellRef the address of the cell to find a comment - * @return cell comment if one exists, otherwise returns null - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #findCellComment(CellAddress)} instead - */ - public XSSFComment findCellComment(String cellRef) { - return findCellComment(new CellAddress(cellRef)); - } - /** * Finds the cell comment at cellAddress, if one exists * @@ -155,19 +135,6 @@ public class CommentsTable extends POIXMLDocumentPart { return ct == null ? null : new XSSFComment(this, ct, null); } - - /** - * Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists - * - * @param ref the location of the cell comment - * @return CTComment xmlbean if comment exists, otherwise return null. - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link CommentsTable#getCTComment(CellAddress)} instead - */ - @Internal - public CTComment getCTComment(String ref) { - return getCTComment(new CellAddress(ref)); - } - /** * Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists * @@ -214,18 +181,6 @@ public class CommentsTable extends POIXMLDocumentPart { } } - /** - * Create a new comment located at cell address - * - * @param ref the location to add the comment - * @return a new CTComment located at ref with default author - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #newComment(CellAddress)} instead - */ - @Internal - public CTComment newComment(String ref) { - return newComment(new CellAddress(ref)); - } - /** * Create a new comment located` at cell address * @@ -243,17 +198,6 @@ public class CommentsTable extends POIXMLDocumentPart { } return ct; } - - /** - * Remove the comment at cellRef location, if one exists - * - * @param cellRef the location of the comment to remove - * @return returns true if a comment was removed - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #removeComment(CellAddress)} instead - */ - public boolean removeComment(String cellRef) { - return removeComment(new CellAddress(cellRef)); - } /** * Remove the comment at cellRef location, if one exists