]> source.dussan.org Git - poi.git/commitdiff
remove unused method
authorSergey Vladimirov <sergey@apache.org>
Mon, 4 Jul 2011 19:20:20 +0000 (19:20 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 4 Jul 2011 19:20:20 +0000 (19:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142771 13f79535-47bb-0310-9956-ffa450edef68

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

index 5744a7b7efaaa1384af0bada4699b60472ecea4f..ba3a1e78c108b0f61eb2747427e33984c82bceb3 100644 (file)
@@ -34,7 +34,6 @@ import org.apache.poi.hwpf.HWPFDocument;
 import org.apache.poi.hwpf.HWPFDocumentCore;
 import org.apache.poi.hwpf.model.ListFormatOverride;
 import org.apache.poi.hwpf.model.ListTables;
-import org.apache.poi.hwpf.usermodel.BorderCode;
 import org.apache.poi.hwpf.usermodel.CharacterRun;
 import org.apache.poi.hwpf.usermodel.Paragraph;
 import org.apache.poi.hwpf.usermodel.Picture;
@@ -82,55 +81,6 @@ public class WordToFoConverter extends AbstractWordConverter
     private static final POILogger logger = POILogFactory
             .getLogger( WordToFoConverter.class );
 
-    public static String getBorderType( BorderCode borderCode )
-    {
-        if ( borderCode == null )
-            throw new IllegalArgumentException( "borderCode is null" );
-
-        switch ( borderCode.getBorderType() )
-        {
-        case 1:
-        case 2:
-            return "solid";
-        case 3:
-            return "double";
-        case 5:
-            return "solid";
-        case 6:
-            return "dotted";
-        case 7:
-        case 8:
-            return "dashed";
-        case 9:
-            return "dotted";
-        case 10:
-        case 11:
-        case 12:
-        case 13:
-        case 14:
-        case 15:
-        case 16:
-        case 17:
-        case 18:
-        case 19:
-            return "double";
-        case 20:
-            return "solid";
-        case 21:
-            return "double";
-        case 22:
-            return "dashed";
-        case 23:
-            return "dashed";
-        case 24:
-            return "ridge";
-        case 25:
-            return "grooved";
-        default:
-            return "solid";
-        }
-    }
-
     /**
      * Java main() interface to interact with {@link WordToFoConverter}
      *