From: Glen Mazza Date: Sat, 4 Jun 2005 04:47:31 +0000 (+0000) Subject: Two stray isBogus()es removed, AFAICT unnecessary childLC initialization X-Git-Tag: fop-0_90-alpha1~591 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b59df1719e7af0712f093a62557b0ba811bbd30;p=xmlgraphics-fop.git Two stray isBogus()es removed, AFAICT unnecessary childLC initialization removed from PSLM. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198716 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/ContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/ContentLayoutManager.java index 08885990b..05c8c6b0e 100644 --- a/src/java/org/apache/fop/layoutmgr/ContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/ContentLayoutManager.java @@ -165,11 +165,6 @@ public class ContentLayoutManager implements InlineLevelLayoutManager { return true; } - /** @see org.apache.fop.layoutmgr.LayoutManager#isBogus() */ - public boolean isBogus() { - return false; - } - /** @see org.apache.fop.layoutmgr.LayoutManager */ public Area getParentArea(Area childArea) { return holder; diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java index 36d3398fa..f5611051f 100644 --- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java @@ -302,27 +302,12 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { } - /** @see org.apache.fop.layoutmgr.LayoutManager#isBogus() */ - public boolean isBogus() { - return false; - } - /** - * Get the next break possibility. - * This finds the next break for a page which is always at the end - * of the page. - * - * @param context the layout context for finding breaks - * @return the break for the page + * @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(Layout Context, int) */ public LinkedList getNextKnuthElements(LayoutContext context, int alignment) { - LinkedList returnedList = null; - while (!childFLM.isFinished()) { - LayoutContext childLC = new LayoutContext(0); - childLC.setStackLimit(context.getStackLimit()); - childLC.setRefIPD(context.getRefIPD()); - returnedList = childFLM.getNextKnuthElements(childLC, alignment); + LinkedList returnedList = childFLM.getNextKnuthElements(context, alignment); if (returnedList != null) { return returnedList;