From 720885ccd944444eb6410ad90117fc1dc7b2a1e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Oct 2019 11:22:27 +0000 Subject: 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") --- lib/PublicInbox/Git.pm | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/PublicInbox/Git.pm') 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; -- cgit v1.2.3-24-ge0c7