about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-23 20:19:38 +0000
committerEric Wong <e@80x24.org>2021-10-23 21:53:55 +0000
commit1d6ebab439828dce8b7e8cbb99dfbc237e9d5a74 (patch)
treedde4f4dea2c6541842cf49f4532a93bfe77e35c1 /lib/PublicInbox/Config.pm
parent7b7d4bd01b564969eb0c1904a5bd9ee4f3dbba72 (diff)
downloadpublic-inbox-1d6ebab439828dce8b7e8cbb99dfbc237e9d5a74.tar.gz
We're not using them, anywhere.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index d38f6586..f2e5d5f0 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -328,30 +328,14 @@ sub parse_cgitrc {
 sub _fill_code_repo {
         my ($self, $nick) = @_;
         my $pfx = "coderepo.$nick";
-
-        my $dir = $self->{"$pfx.dir"}; # aka "GIT_DIR"
-        unless (defined $dir) {
+        my $dir = $self->{"$pfx.dir"} // do { # aka "GIT_DIR"
                 warn "$pfx.dir unset\n";
                 return;
-        }
-
+        };
         my $git = PublicInbox::Git->new($dir);
-        foreach my $t (qw(blob commit tree tag)) {
-                $git->{$t.'_url_format'} =
-                                _array($self->{lc("$pfx.${t}UrlFormat")});
-        }
-
         if (defined(my $cgits = $self->{"$pfx.cgiturl"})) {
                 $git->{cgit_url} = $cgits = _array($cgits);
                 $self->{"$pfx.cgiturl"} = $cgits;
-
-                # cgit supports "/blob/?id=%s", but it's only a plain-text
-                # display and requires an unabbreviated id=
-                foreach my $t (qw(blob commit tag)) {
-                        $git->{$t.'_url_format'} //= map {
-                                "$_/$t/?id=%s"
-                        } @$cgits;
-                }
         }
 
         $git;