aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-07-20 23:01:42 +0000
committerGlen Mazza <gmazza@apache.org>2004-07-20 23:01:42 +0000
commitb0edef464f101e79f3a2a7a00be1a6e7866d325d (patch)
tree33f8fa307bac266dc33a1923ca34553a37e2ca9a /src/java/org/apache/fop/fo
parentc66411ce9e7466c21a0d4821fbdaff9476677f57 (diff)
downloadxmlgraphics-fop-b0edef464f101e79f3a2a7a00be1a6e7866d325d.tar.gz
xmlgraphics-fop-b0edef464f101e79f3a2a7a00be1a6e7866d325d.zip
Removed redundant check for invalid render type.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197805 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r--src/java/org/apache/fop/fo/FOTreeBuilder.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/fo/FOTreeBuilder.java b/src/java/org/apache/fop/fo/FOTreeBuilder.java
index 12f5623d6..15cbc3b06 100644
--- a/src/java/org/apache/fop/fo/FOTreeBuilder.java
+++ b/src/java/org/apache/fop/fo/FOTreeBuilder.java
@@ -111,11 +111,6 @@ public class FOTreeBuilder extends DefaultHandler {
} else if (renderType == Constants.RENDER_RTF) {
foInputHandler = new RTFHandler(foUserAgent, stream);
} else {
- if (renderType == Constants.NOT_SET) {
- throw new IllegalStateException(
- "Desired render type not set.");
- }
-
if (renderType < Constants.RENDER_MIN_CONST
|| renderType > Constants.RENDER_MAX_CONST) {
throw new IllegalArgumentException(