remove dead code

This commit is contained in:
Arpad Ryszka 2017-08-06 01:40:29 +02:00
parent 1ea3e79cf5
commit fa14548297

View File

@ -176,8 +176,6 @@ func (p *choiceParser) parse(t Trace, c *context) {
var elementIndex int var elementIndex int
var foundMatch bool var foundMatch bool
var excludedIncluded []int
for { for {
foundMatch = false foundMatch = false
elementIndex = 0 elementIndex = 0
@ -197,18 +195,6 @@ func (p *choiceParser) parse(t Trace, c *context) {
c.offset = from c.offset = from
c.store.setMatch(from, p.id, to) 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 { if !foundMatch {