]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/RuleCache.pm
RuleCache: remove unnecessary copying of marks
[pmg-api.git] / src / PMG / RuleCache.pm
index b8690eacd7ba926a7ddd88d603d1f9754604c560..51d8a07faf86af514baa530b4e4a81ed107d5986 100644 (file)
@@ -322,9 +322,7 @@ sub what_match {
            my $target_info;
            if ($target_info = $obj->what_match_targets($queue, $element, $msginfo, $dbh)) {
                foreach my $k (keys %$target_info) {
-                   my $cmarks = $target_info->{$k}->{marks}; # make a copy
                    $res->{$k} = $target_info->{$k};
-                   push @{$res->{$k}->{marks}}, @$cmarks if $cmarks;
                }
            }
        }