lib/PublicInbox/SearchThread.pm | 2 -- lib/PublicInbox/View.pm | 4 ++-- diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm index d39e9b62f19101c7afc329f0fe1afdfe3486f416..7e89946df81bd695ab7b14251cf2eae1ae346653 100644 --- a/lib/PublicInbox/SearchThread.pm +++ b/lib/PublicInbox/SearchThread.pm @@ -29,8 +29,6 @@ rootset => [] }, $_[0]; } -sub rootset { @{$_[0]{rootset}} } - sub thread { my $self = shift; $self->_setup(); diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 748e39106a58d5a73450df89b7b26159044aad0b..7554d54f87fed1e5089721c1b88a46957c2c8f18 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -259,7 +259,7 @@ } sub walk_thread { my ($th, $ctx, $cb) = @_; - my @q = map { (0, $_) } $th->rootset; + my @q = map { (0, $_) } @{$th->{rootset}}; while (@q) { my $level = shift @q; my $node = shift @q or next; @@ -291,7 +291,7 @@ sub stream_thread ($$) { my ($th, $ctx) = @_; my $inbox = $ctx->{-inbox}; my $mime; - my @q = map { (0, $_) } $th->rootset; + my @q = map { (0, $_) } @{$th->{rootset}}; my $level; while (@q) { $level = shift @q;