You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2020/06/28 10:19:21 UTC
svn commit: r1879300 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java
Author: fanningpj
Date: Sun Jun 28 10:19:21 2020
New Revision: 1879300
URL: http://svn.apache.org/viewvc?rev=1879300&view=rev
Log:
remove some more deprecated code
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java?rev=1879300&r1=1879299&r2=1879300&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/RecordContainer.java Sun Jun 28 10:19:21 2020
@@ -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 ex
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.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org