diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 16:27:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:24 +0200 |
commit | 8583da1e934a49791ef8d86668f3d5c3c5dae1d7 (patch) | |
tree | f092f708b7bb9a0a23ae82c1dc499a6e3fde4518 /xmerge | |
parent | 68cd011c907d00493bf2bfde531c1e244819596b (diff) |
java: remove unused fields
found by UCDetector
Change-Id: I4a7c56a9918054c23469de5680658e7b501f0165
Diffstat (limited to 'xmerge')
7 files changed, 21 insertions, 42 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PalmDB.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PalmDB.java index fa6828ae78e6..5e34469f9a49 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PalmDB.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PalmDB.java @@ -65,8 +65,7 @@ import java.io.UnsupportedEncodingException; public final class PalmDB { - /* Backup attribute for a PDB. This corresponds to dmHdrAttrBackup. */ - public final static short PDB_HEADER_ATTR_BACKUP = 0x0008; + /** Number of bytes for the name field in the PDB. */ public final static int NAME_LENGTH = 32; diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeConstants.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeConstants.java index a8eef4a07816..6aae065380d4 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeConstants.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeConstants.java @@ -52,11 +52,7 @@ public interface OfficeConstants { */ public final static String TAG_OFFICE_DOCUMENT_STYLES = "office:document-styles"; - /** - * Attribute tag for <i>office:class</i> of element - * <i>office:document</i>. - */ - public final static String ATTRIBUTE_OFFICE_CLASS = "office:class"; + /** Element tag for <i>office:styles</i>. */ public final static String TAG_OFFICE_STYLES = "office:styles"; @@ -86,8 +82,7 @@ public interface OfficeConstants { /** Element tag for <i>text:expression</i>. */ public final static String TAG_TEXT_EXPRESSION = "text:expression"; -/** Element tag for <i>text:user-field-get</i>. */ - public final static String TAG_TEXT_USER_FIELD_GET = "text:user-field-get"; + /** Element tag for <i>text:page-variable-get</i>. */ public final static String TAG_TEXT_PAGE_VARIABLE_GET = "text:page-variable-get"; @@ -99,23 +94,16 @@ public interface OfficeConstants { /** Element tag for <i>text:time</i>. */ public final static String TAG_TEXT_TIME = "text:time"; - /** Element tag for <i>text:page-count</i>. */ - public final static String TAG_TEXT_PAGE_COUNT = "text:page-count"; - /** Element tag for <i>text:page-number</i>. */ - public final static String TAG_TEXT_PAGE_NUMBER = "text:page-number"; - /** Element tag for <i>text:author-initials</i>. */ - public final static String TAG_TEXT_AUTHOR_INITIALS = "text:author-initials"; + + + /** Element tag for <i>text:subject</i>. */ public final static String TAG_TEXT_SUBJECT = "text:subject"; - /** Element tag for <i>text:title</i>. */ - public final static String TAG_TEXT_TITLE = "text:title"; - /** Element tag for <i>text:creation-time</i>. */ - public final static String TAG_TEXT_CREATION_TIME = "text:creation-time"; - /** Element tag for <i>text:date</i>. */ - public final static String TAG_TEXT_DATE = "text:date"; - /** Element tag for <i>text:text-input</i>. */ - public final static String TAG_TEXT_TEXT_INPUT = "text:text-input"; + + + + //end adding @@ -424,6 +412,5 @@ public interface OfficeConstants { /** StarMath XML MIME type. */ public final static String SXM_MIME_TYPE = "application/vnd.sun.xml.math"; - /** StarWriter Global XML MIME Type */ - public final static String SXG_MIME_TYPE = "application/vnd.sun.xml.writer.global"; + } diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/ParaStyle.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/ParaStyle.java index 4de588c4e545..44eb33c3bdfc 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/ParaStyle.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/ParaStyle.java @@ -142,14 +142,10 @@ class alignment extends conversionAlgorithm { */ public class ParaStyle extends Style implements Cloneable { - /** The left margin property. */ - public static final int MARGIN_LEFT = 0; - /** The right margin property. */ - public static final int MARGIN_RIGHT = 1; - /** The top margin property. */ - public static final int MARGIN_TOP = 2; - /** The bottom margin property. */ - public static final int MARGIN_BOTTOM = 3; + + + + /** Indent left property. */ private static final int TEXT_INDENT = 4; /** Indent right property. */ @@ -200,8 +196,7 @@ public class ParaStyle extends Style implements Cloneable { /** Line height percentage. */ public static final int LH_PCT = 0x40000000; - /** Line height minimum value. */ - public static final int LH_ATLEAST = 0x20000000; + /** Line height mask. */ private static final int LH_VALUEMASK = 0x00FFFFFF; diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/TextStyle.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/TextStyle.java index 2303bb3bb2c1..b04579bde788 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/TextStyle.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/TextStyle.java @@ -35,7 +35,7 @@ import org.openoffice.xmerge.util.Debug; */ public class TextStyle extends Style implements Cloneable { - final protected static int FIRST_ATTR = 0x01; + /** Indicates <i>bold</i> text. */ final private static int BOLD = 0x01; /** Indicates <i>italic</i> text. */ @@ -48,8 +48,7 @@ public class TextStyle extends Style implements Cloneable { final private static int SUPERSCRIPT = 0x10; /** Indicates <i>subscripted</i> text. */ final private static int SUBSCRIPT = 0x20; - /** Indicates the last attribute. */ - final protected static int LAST_ATTR = 0x20; + /** Values of text attributes. */ private int values = 0; diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java index eb50897291ed..c0925599d3ec 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java @@ -30,7 +30,7 @@ public class Format implements Cloneable { final public static int RIGHT_ALIGN = 0x01; final public static int CENTER_ALIGN = 0x02; final public static int LEFT_ALIGN = 0x03; - final public static int JUST_ALIGN = 0x04; + /** Vertical Alignment Constants. */ final public static int TOP_ALIGN = 0x01; diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SheetSettings.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SheetSettings.java index 11f938bb41f2..23d6f794c6e1 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SheetSettings.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SheetSettings.java @@ -46,7 +46,7 @@ public class SheetSettings implements OfficeConstants { private int posTop = 0; private int paneNumber = 2; - final public static int NONE = 0x00; + final private static int SPLIT = 0x01; final private static int FREEZE = 0x02; diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/Debug.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/Debug.java index a04f72c6a5d0..03722fb309ca 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/Debug.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/Debug.java @@ -51,8 +51,7 @@ public final class Debug { /** To set a flag. */ private final static boolean SET = true; - /** To unset a flag. */ - public final static boolean UNSET = false; + private static int flags = 0; private static PrintWriter writer = null; |