Browse Source

Remove redundant code in ExpressionTransforms.VisitBlockContainer

pull/1649/head
Siegfried Pammer 6 years ago
parent
commit
03151bf37b
  1. 3
      ICSharpCode.Decompiler/IL/Transforms/ExpressionTransforms.cs

3
ICSharpCode.Decompiler/IL/Transforms/ExpressionTransforms.cs

@ -68,9 +68,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms
// Special case for switch: Only visit the switch condition block. // Special case for switch: Only visit the switch condition block.
var switchInst = (SwitchInstruction)container.EntryPoint.Instructions[0]; var switchInst = (SwitchInstruction)container.EntryPoint.Instructions[0];
switchInst.Value.AcceptVisitor(this); switchInst.Value.AcceptVisitor(this);
return;
} }
base.VisitBlockContainer(container); // No need to call base.VisitBlockContainer, see comment in VisitBlock.
} }
protected internal override void VisitBlock(Block block) protected internal override void VisitBlock(Block block)

Loading…
Cancel
Save