From: Eric Wong Date: Tue, 4 Feb 2020 04:44:24 +0000 (+0000) Subject: inbox: remove TODO item for msg_by_path X-Git-Tag: v1.3.0~17 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=fea03df0e2e95ad3ac44ac46d9c31da97fa2fde9 inbox: remove TODO item for msg_by_path It's an old function which only gets called by inboxes w/o SQLite indices. --- diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index accfd974..a5849a61 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -305,9 +305,9 @@ sub nntp_usable { $ret; } +# for v1 users w/o SQLite only sub msg_by_path ($$;$) { my ($self, $path, $ref) = @_; - # TODO: allow other refs: my $str = git($self)->cat_file('HEAD:'.$path, $ref); $$str =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s if $str; $str;