Optimization: Remove useless calls to union()

This commit is contained in:
Alessandro Ranellucci 2013-09-07 00:28:53 +02:00
parent 10ab3bbb86
commit 09684c67c2
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ sub _merge_loops {
# of the loops, since the Orientation() function provided by Clipper
# would do the same, thus repeating the calculation
$slices = ($area[$i] >= 0)
? union([ $loops->[$i], @$slices ])
? [ $loops->[$i], @$slices ]
: diff($slices, [$loops->[$i]]);
}