summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-06-17 07:32:38 +0000
committerJaven O'Neal <onealj@apache.org>2016-06-17 07:32:38 +0000
commitfd12e273dc31c75c10e0f232df0b44f7f1b80ac1 (patch)
treedaf3bfb51e5bc586cd8bdb1eeff5fae515298d54
parentc14d1a46b6d0bc90150268e02288bae019774338 (diff)
downloadpoi-fd12e273dc31c75c10e0f232df0b44f7f1b80ac1.tar.gz
poi-fd12e273dc31c75c10e0f232df0b44f7f1b80ac1.zip
findbugs: remove uncalled private methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748804 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java98
1 files changed, 0 insertions, 98 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java
index 182e50d01d..21516f7ffa 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java
@@ -572,47 +572,6 @@ public class Range { // TODO -instantiable superclass
}
/**
- * Inserts a simple table into the beginning of this range. The number of
- * columns is determined by the TableProperties passed into this function.
- *
- * @param props
- * The table properties for the table.
- * @param rows
- * The number of rows.
- * @return The empty Table that is now part of the document.
- * @deprecated POI 3.8 beta 4. Use code shall not work with {@link TableProperties}. Use
- * {@link #insertTableBefore(short, int)} instead
- */
- @Deprecated
- private Table insertBefore(TableProperties props, int rows) {
- ParagraphProperties parProps = new ParagraphProperties();
- parProps.setFInTable(true);
- parProps.setItap( 1 );
-
- final int oldEnd = this._end;
-
- int columns = props.getItcMac();
- for ( int x = 0; x < rows; x++ )
- {
- Paragraph cell = this.insertBefore( parProps, StyleSheet.NIL_STYLE );
- cell.insertAfter( String.valueOf( '\u0007' ) );
- for ( int y = 1; y < columns; y++ )
- {
- cell = cell.insertAfter( parProps, StyleSheet.NIL_STYLE );
- cell.insertAfter( String.valueOf( '\u0007' ) );
- }
- cell = cell.insertAfter( parProps, StyleSheet.NIL_STYLE,
- String.valueOf( '\u0007' ) );
- cell.setTableRowEnd( props );
- }
-
- final int newEnd = this._end;
- final int diff = newEnd - oldEnd;
-
- return new Table( _start, _start + diff, this, 1 );
- }
-
- /**
* Inserts a simple table into the beginning of this range.
*
* @param columns
@@ -648,63 +607,6 @@ public class Range { // TODO -instantiable superclass
return new Table( _start, _start + diff, this, 1 );
}
- /**
- * Inserts a list into the beginning of this range.
- *
- * @param props
- * The properties of the list entry. All list entries are
- * paragraphs.
- * @param listID
- * The id of the list that contains the properties.
- * @param level
- * The indentation level of the list.
- * @param styleIndex
- * The base style's index in the stylesheet.
- * @return The empty ListEntry that is now part of the document.
- * @deprecated POI 3.8 beta 4. User code shall not work with {@link ParagraphProperties}
- */
- @Deprecated
- private ListEntry insertBefore(ParagraphProperties props, int listID, int level, int styleIndex) {
- ListTables lt = _doc.getListTables();
- if (lt.getLevel(listID, level) == null) {
- throw new NoSuchElementException("The specified list and level do not exist");
- }
-
- int ilfo = lt.getOverrideIndexFromListID(listID);
- props.setIlfo(ilfo);
- props.setIlvl((byte) level);
-
- return (ListEntry) insertBefore(props, styleIndex);
- }
-
- /**
- * Inserts a list into the beginning of this range.
- *
- * @param props
- * The properties of the list entry. All list entries are
- * paragraphs.
- * @param listID
- * The id of the list that contains the properties.
- * @param level
- * The indentation level of the list.
- * @param styleIndex
- * The base style's index in the stylesheet.
- * @return The empty ListEntry that is now part of the document.
- * @deprecated POI 3.8 beta 4. User code shall not work with {@link ParagraphProperties}
- */
- @Deprecated
- private ListEntry insertAfter(ParagraphProperties props, int listID, int level, int styleIndex) {
- ListTables lt = _doc.getListTables();
- if (lt.getLevel(listID, level) == null) {
- throw new NoSuchElementException("The specified list and level do not exist");
- }
- int ilfo = lt.getOverrideIndexFromListID(listID);
- props.setIlfo(ilfo);
- props.setIlvl((byte) level);
-
- return (ListEntry) insertAfter(props, styleIndex);
- }
-
/**
* Replace range text with new one, adding it to the range and deleting
* original text from document