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

src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java

index aca3834e708715be4b328e88d5ffadb69e6932e3..cfc82cd0d67e87baba9749ea850a066f23b85dc8 100644 (file)
@@ -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