Permalink
Browse files

Reduce the size of mate.

  • Loading branch information...
hiratara committed Sep 26, 2012
1 parent e01604d commit 53f24e45a457522bcb61a8169bc3be02f8d5f77f
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Algorithm/Simpath.pm
View
@@ -8,11 +8,7 @@ our @EXPORT = qw(solve);
sub low_node($$) {
my ($node, $grid_edge) = @_;
- my %mate = %{$node->{mate}};
- my $next_grid_node = $grid_edge->[1];
- $mate{$next_grid_node} = $next_grid_node unless exists $mate{$next_grid_node};
-
- {mate => \%mate};
+ {mate => $node->{mate}};
}
sub high_node($$) {

0 comments on commit 53f24e4

Please sign in to comment.