From 16bbb5e9d8b03d0d6fc637af7ebe5c1bbdb5e357 Mon Sep 17 00:00:00 2001 From: sonalmahajan15 Date: Wed, 18 Oct 2023 11:04:35 -0700 Subject: [PATCH] removed commented code --- annotation/consume_trigger.go | 2 -- assertion/function/assertiontree/util.go | 1 - 2 files changed, 3 deletions(-) diff --git a/annotation/consume_trigger.go b/annotation/consume_trigger.go index 9a58229f..08b7f008 100644 --- a/annotation/consume_trigger.go +++ b/annotation/consume_trigger.go @@ -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), @@ -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...), diff --git a/assertion/function/assertiontree/util.go b/assertion/function/assertiontree/util.go index 054b24d2..c70e3ff5 100644 --- a/assertion/function/assertiontree/util.go +++ b/assertion/function/assertiontree/util.go @@ -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())