]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed unused code.
authorJeremias Maerki <jeremias@apache.org>
Wed, 9 Jul 2008 12:57:06 +0000 (12:57 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 9 Jul 2008 12:57:06 +0000 (12:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95@675151 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java

index 732ecf99ad45f2bb464fdefb0dd3146038177974..ef9b248f1306938ffcafc3ec159762543e973e6c 100644 (file)
@@ -37,18 +37,6 @@ import org.apache.fop.fo.pagination.PageSequence;
 public class PercentContext implements PercentBaseContext {
     private static Log log = LogFactory.getLog(PercentContext.class);
 
-    private static final String BLOCKCONTAINER = "fo:block-container";
-    private static final String INLINECONTAINER = "fo:inline-container";
-    private static final String TABLE = "fo:table";
-    private static final String TABLECOLUMN = "fo:table-column";
-    private static final String PAGESEQUENCE = "fo:page-sequence";
-    private static final String EXTERNALGRAPHIC = "fo:external-graphic";
-
-    /** String array of Elements having a width property */
-    public static final String[] WIDTH_OBJECTS = new String[] {
-            BLOCKCONTAINER, INLINECONTAINER,
-            TABLE, TABLECOLUMN, PAGESEQUENCE, EXTERNALGRAPHIC};
-
     /** Map containing the FObj and its width */
     private Map lengthMap = new java.util.HashMap();
 
@@ -83,15 +71,6 @@ public class PercentContext implements PercentBaseContext {
             }
         case LengthBase.TABLE_UNITS:
             Object unit = tableUnitMap.get(fobj);
-            /*
-            if (unit == null && !(fobj instanceof Table)) {
-                FONode node = fobj;
-                do {
-                    node = node.getParent();
-                } while (!(node instanceof FObj) || node != null);
-                return getBaseLength(lengthBase, (FObj)node);
-            }
-            */
             return (unit != null) ? ((Integer)unit).intValue() : 0;
         default:
             log.error(new Exception("Unsupported base type for LengthBase:" + lengthBase));