diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-06-28 10:19:21 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-06-28 10:19:21 +0000 |
commit | 09d81ea7da4ad70520d40178b0960a8c2dc4349c (patch) | |
tree | 6a13997d5e982aaa39eddae9715ba5d074bb445a | |
parent | 02cebfc3127696b58495bd59557775a935dcfa84 (diff) | |
download | poi-09d81ea7da4ad70520d40178b0960a8c2dc4349c.tar.gz poi-09d81ea7da4ad70520d40178b0960a8c2dc4349c.zip |
remove some more deprecated code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879300 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java b/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java index 4e738a7601..635ad85b28 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java +++ b/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java @@ -27,7 +27,6 @@ import java.util.function.Supplier; import org.apache.poi.util.ArrayUtil; import org.apache.poi.util.LittleEndian; -import org.apache.poi.util.Removal; /** * Abstract class which all container records will extend. Providers @@ -204,74 +203,6 @@ public abstract class RecordContainer extends Record return loc; } - /** - * Moves the given Child Record to before the supplied record - * - * @deprecated method is not used within POI and will be removed - */ - @Removal(version="3.19") - @Deprecated - public void moveChildBefore(Record child, Record before) { - moveChildrenBefore(child, 1, before); - } - - /** - * Moves the given Child Records to before the supplied record - * - * @deprecated method is not used within POI and will be removed - */ - @Removal(version="3.19") - @Deprecated - public void moveChildrenBefore(Record firstChild, int number, Record before) { - if(number < 1) { return; } - - // Decide where we're going to put them - int newLoc = findChildLocation(before); - if(newLoc == -1) { - throw new IllegalArgumentException("Asked to move children before another record, but that record wasn't one of our children!"); - } - - // Figure out where they are now - int oldLoc = findChildLocation(firstChild); - if(oldLoc == -1) { - throw new IllegalArgumentException("Asked to move a record that wasn't a child!"); - } - - // Actually move - moveChildRecords(oldLoc, newLoc, number); - } - - /** - * Moves the given Child Records to after the supplied record - * - * @param firstChild the first child to be moved - * @param number the number of records to move - * @param after the record after that the children are moved - * - * @deprecated method is not used within POI and will be removed - */ - @Removal(version="3.19") - @Deprecated - public void moveChildrenAfter(Record firstChild, int number, Record after) { - if(number < 1) { return; } - // Decide where we're going to put them - int newLoc = findChildLocation(after); - if(newLoc == -1) { - throw new IllegalArgumentException("Asked to move children before another record, but that record wasn't one of our children!"); - } - // We actually want after this though - newLoc++; - - // Figure out where they are now - int oldLoc = findChildLocation(firstChild); - if(oldLoc == -1) { - throw new IllegalArgumentException("Asked to move a record that wasn't a child!"); - } - - // Actually move - moveChildRecords(oldLoc, newLoc, number); - } - /** * Set child records. * |