]> Sergey Matveev's repositories - public-inbox.git/commitdiff
git: remove src_blob_url
authorEric Wong <e@80x24.org>
Mon, 21 Oct 2019 11:22:27 +0000 (11:22 +0000)
committerEric Wong <e@80x24.org>
Tue, 22 Oct 2019 06:49:54 +0000 (06:49 +0000)
This was intended for solver, but it's unused since
commit 915cd090798069a4
("solver: switch patch application to use a callback")

lib/PublicInbox/Git.pm

index ff3838b3ff8b7fc5d9baeda7c3cb5bb03a4d79b8..218846f3d1d25d42699a4a4be55351394c6a5341 100644 (file)
@@ -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;