xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r675151 - /xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/render/rtf/rtflib/tools/PercentContext.java
Date Wed, 09 Jul 2008 12:57:06 GMT
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


Mime
View raw message