Skip to content

Commit

Permalink
MB-57394: Remove unnecessary loop before releasing array content (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti authored Jun 30, 2023
1 parent 3835fec commit d984e35
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@ type builderNode struct {
func (n *builderNode) reset() {
n.final = false
n.finalOutput = 0
for i := range n.trans {
n.trans[i] = emptyTransition
}
n.trans = n.trans[:0]
n.next = nil
}
Expand Down Expand Up @@ -393,8 +390,6 @@ func (n *builderNode) equiv(o *builderNode) bool {
return true
}

var emptyTransition = transition{}

type transition struct {
out uint64
addr int
Expand Down

0 comments on commit d984e35

Please sign in to comment.