diff options
author | Eric Wong <e@80x24.org> | 2016-10-05 23:47:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-10-05 23:53:33 +0000 |
commit | 0412f55abd34d90e4efe0b28217d79fa8319834f (patch) | |
tree | 96c50eda271618e1db3b1d03f45ba0189cf051c1 /lib/PublicInbox/SearchThread.pm | |
parent | 465d6b11e0bc800e45057bef89df37f265ecd5c0 (diff) | |
download | public-inbox-0412f55abd34d90e4efe0b28217d79fa8319834f.tar.gz |
We never use the depth anywhere in this sub
Diffstat (limited to 'lib/PublicInbox/SearchThread.pm')
-rw-r--r-- | lib/PublicInbox/SearchThread.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm index ba31f432..2e7b79a0 100644 --- a/lib/PublicInbox/SearchThread.pm +++ b/lib/PublicInbox/SearchThread.pm @@ -203,7 +203,6 @@ sub order_children { my ($walk, $ordersub) = @_; my %seen; - my $depth = 0; my @visited; while ($walk) { push @visited, $walk; @@ -222,17 +221,13 @@ sub order_children { } # go down, or across - if ($child) { - $next = $child; - ++$depth; - } + $next = $child if $child; # no next? look up if (!$next) { my $up = $walk; while ($up && !$next) { $up = $up->{parent}; - --$depth; $next = $up->{next} if $up; } } |