Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalmahajan15 committed Oct 18, 2023
1 parent c5ae3da commit 16bbb5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions annotation/consume_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,6 @@ func MergeConsumeTriggerSlices(left, right []*ConsumeTrigger) []*ConsumeTrigger
// intersect guard sets - if a guard isn't present in both branches it can't
// be considered present before the branch
out[i] = &ConsumeTrigger{
// Annotation: outTrigger.Annotation,
Annotation: outTrigger.Annotation.Copy(),
Expr: outTrigger.Expr,
Guards: outTrigger.Guards.Intersection(trigger.Guards),
Expand Down Expand Up @@ -1702,7 +1701,6 @@ func ConsumeTriggerSliceAsGuarded(slice []*ConsumeTrigger, guards ...util.GuardN
var out []*ConsumeTrigger
for _, trigger := range slice {
out = append(out, &ConsumeTrigger{
// Annotation: trigger.Annotation,
Annotation: trigger.Annotation.Copy(),
Expr: trigger.Expr,
Guards: trigger.Guards.Copy().Add(guards...),
Expand Down
1 change: 0 additions & 1 deletion assertion/function/assertiontree/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ func CopyNode(node AssertionNode) AssertionNode {
fresh.SetChildren(append(fresh.Children(), freshChild))
}

// fresh.SetConsumeTriggers(append(make([]*annotation.ConsumeTrigger, 0, len(node.ConsumeTriggers())), node.ConsumeTriggers()...))
copyConsumers := make([]*annotation.ConsumeTrigger, 0, len(node.ConsumeTriggers()))
for _, c := range node.ConsumeTriggers() {
copyConsumers = append(copyConsumers, c.Copy())
Expand Down

0 comments on commit 16bbb5e

Please sign in to comment.