about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 43cf15ba..142b5c89 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -319,20 +319,7 @@ sub msg_by_mid ($$;$) {
 
 sub recent {
         my ($self, $opts) = @_;
-        my $qs = '';
-        my $srch = search($self);
-        if (!$opts->{offset}) {
-                # this complicated bit cuts /$INBOX/ loading time by
-                # over 400ms on my system:
-                my ($min, $max) = mm($self)->minmax;
-                my $n = $max - $opts->{limit};
-                $n = $min if $n < $min;
-                for (; $qs eq '' && $n >= $min; --$n) {
-                        my $smsg = $srch->lookup_article($n) or next;
-                        $qs = strftime('d:%Y%m%d..', gmtime($smsg->ts));
-                }
-        }
-        $srch->query($qs, $opts);
+        search($self)->query('', $opts);
 }
 
 1;