From 6ac08eb0b6006de28c157ea4f3054174d4516025 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 23 Oct 1998 20:36:40 +0000 Subject: [PATCH] clean up attachment crap git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@68 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/StructuredBlock.java | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/jode/jode/flow/StructuredBlock.java b/jode/jode/flow/StructuredBlock.java index 21e2df9..f46d3d9 100644 --- a/jode/jode/flow/StructuredBlock.java +++ b/jode/jode/flow/StructuredBlock.java @@ -91,7 +91,7 @@ public abstract class StructuredBlock { /** * Returns the block where the control will normally flow to, when - * this block is finished (not ignoring the jump after this block). + * this block is finished. */ public StructuredBlock getNextBlock() { if (jump != null) @@ -108,8 +108,7 @@ public abstract class StructuredBlock { /** * Returns the flow block where the control will normally flow to, - * when this block is finished (not ignoring the jump after this - * block). + * when this block is finished. * @return null, if the control flows into a non empty structured * block or if this is the outermost block. */ @@ -121,26 +120,11 @@ public abstract class StructuredBlock { return null; } - /** - * Checks if the jump to the outside has correct monitorexit and - * jsr instructions attached. - * @return null, if everything is okay, and a diagnostic message that - * should be put in a comment otherwise. - */ - public String checkJump(Jump jump) { - if (outer != null) - return outer.checkJump(jump); - if (jump.hasAttachments()) - return "Unknown attachments: "+jump.describeAttachments(); - return null; - } - /** * Returns the block where the control will normally flow to, when - * the given sub block is finished (not ignoring the jump - * after this block). (This is overwritten by SequentialBlock and - * SwitchBlock). If this isn't called with a direct sub block, - * the behaviour is undefined, so take care. + * the given sub block is finished. (This is overwritten by + * SequentialBlock and SwitchBlock). If this isn't called with a + * direct sub block, the behaviour is undefined, so take care. * @return null, if the control flows to another FlowBlock. */ public StructuredBlock getNextBlock(StructuredBlock subBlock) { return getNextBlock();