From: Sergey Vladimirov Date: Mon, 4 Jul 2011 19:20:20 +0000 (+0000) Subject: remove unused method X-Git-Tag: REL_3_8_BETA4~337 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11652b3a2c9341d9769eeca03ba7dd450307766c;p=poi.git remove unused method git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142771 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoConverter.java index 5744a7b7ef..ba3a1e78c1 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoConverter.java @@ -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} *