]> source.dussan.org Git - poi.git/commitdiff
remove unused method
authorSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 09:26:29 +0000 (09:26 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 09:26:29 +0000 (09:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147391 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordUtils.java

index c50b119bd644557179836c862cf2e107861dae68..1e55f36bebed2db05eb4848c1f99a9efdab4d59d 100644 (file)
@@ -20,7 +20,6 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.lang.reflect.Constructor;
 
 import org.apache.poi.hwpf.HWPFDocument;
 import org.apache.poi.hwpf.HWPFDocumentCore;
@@ -30,8 +29,6 @@ import org.apache.poi.hwpf.model.ListLevel;
 import org.apache.poi.hwpf.model.ListTables;
 import org.apache.poi.hwpf.usermodel.BorderCode;
 import org.apache.poi.hwpf.usermodel.Paragraph;
-import org.apache.poi.hwpf.usermodel.Range;
-import org.apache.poi.hwpf.usermodel.TableIterator;
 import org.apache.poi.poifs.filesystem.POIFSFileSystem;
 import org.apache.poi.util.IOUtils;
 
@@ -95,7 +92,7 @@ public class AbstractWordUtils
             return "solid";
         }
     }
-    
+
     public static String getBorderWidth( BorderCode borderCode )
     {
         int lineWidth = borderCode.getLineWidth();
@@ -274,21 +271,6 @@ public class AbstractWordUtils
         }
     }
 
-    public static TableIterator newTableIterator( Range range, int level )
-    {
-        try
-        {
-            Constructor<TableIterator> constructor = TableIterator.class
-                    .getDeclaredConstructor( Range.class, int.class );
-            constructor.setAccessible( true );
-            return constructor.newInstance( range, Integer.valueOf( level ) );
-        }
-        catch ( Exception exc )
-        {
-            throw new Error( exc );
-        }
-    }
-
     static String substringBeforeLast( String str, String separator )
     {
         if ( isEmpty( str ) || isEmpty( separator ) )