From: Eric Wong Date: Mon, 21 Oct 2019 11:22:27 +0000 (+0000) Subject: git: remove src_blob_url X-Git-Tag: v1.2.0~21 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=720885ccd944444eb6410ad90117fc1dc7b2a1e1;hp=4f3ba0c11302d69327ff37cd28525f309c128f92 git: remove src_blob_url This was intended for solver, but it's unused since commit 915cd090798069a4 ("solver: switch patch application to use a callback") --- diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index ff3838b3..218846f3 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -261,17 +261,6 @@ sub local_nick ($) { wantarray ? ($ret) : $ret; } -# show the blob URL for cgit/gitweb/whatever -sub src_blob_url { - my ($self, $oid) = @_; - # blob_url_format = "https://example.com/foo.git/blob/%s" - if (my $bfu = $self->{blob_url_format}) { - return map { sprintf($_, $oid) } @$bfu if wantarray; - return sprintf($bfu->[0], $oid); - } - local_nick($self); -} - sub host_prefix_url ($$) { my ($env, $url) = @_; return $url if index($url, '//') >= 0;