diff --git a/blocks/ScopeBlock.cs b/blocks/ScopeBlock.cs index add35eeb..2b0bb124 100644 --- a/blocks/ScopeBlock.cs +++ b/blocks/ScopeBlock.cs @@ -281,5 +281,11 @@ namespace de4dot.blocks { throw new ApplicationException("Could not remove dead base block from baseBlocks"); } } + + public void removeGuaranteedDeadBlock(Block block) { + if (!baseBlocks.Remove(block)) + throw new ApplicationException("Could not remove dead block"); + block.removeGuaranteedDeadBlock(); + } } }