You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2008/07/09 14:57:06 UTC

svn commit: r675151 - /xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java

Author: jeremias
Date: Wed Jul  9 05:57:06 2008
New Revision: 675151

URL: http://svn.apache.org/viewvc?rev=675151&view=rev
Log:
Removed unused code.

Modified:
    xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java

Modified: xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java?rev=675151&r1=675150&r2=675151&view=diff
==============================================================================
--- xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java (original)
+++ xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java Wed Jul  9 05:57:06 2008
@@ -37,18 +37,6 @@
 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 @@
             }
         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));



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org