diff --git a/choice.go b/choice.go index b6f44eb..4cc37f6 100644 --- a/choice.go +++ b/choice.go @@ -176,8 +176,6 @@ func (p *choiceParser) parse(t Trace, c *context) { var elementIndex int var foundMatch bool - var excludedIncluded []int - for { foundMatch = false elementIndex = 0 @@ -197,18 +195,6 @@ func (p *choiceParser) parse(t Trace, c *context) { c.offset = from c.store.setMatch(from, p.id, to) - if match { - for _, includedBy := range excludedIncluded { - c.store.setMatch(from, includedBy, to) - } - } else { - for _, includedBy := range p.includedBy { - if c.excluded(from, includedBy) { - excludedIncluded = append(excludedIncluded, includedBy) - c.store.setMatch(from, includedBy, to) - } - } - } } if !foundMatch {