Delete an unnecessary intermediate statement in a do block