about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoTree.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoTree.pm')
-rw-r--r--lib/PublicInbox/RepoTree.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/PublicInbox/RepoTree.pm b/lib/PublicInbox/RepoTree.pm
index 84e20589..7434e9b2 100644
--- a/lib/PublicInbox/RepoTree.pm
+++ b/lib/PublicInbox/RepoTree.pm
@@ -5,7 +5,6 @@
 package PublicInbox::RepoTree;
 use v5.12;
 use PublicInbox::ViewDiff qw(uri_escape_path);
-use PublicInbox::GitAsyncCat;
 use PublicInbox::WwwStatic qw(r);
 use PublicInbox::Qspawn;
 use PublicInbox::WwwStream qw(html_oneshot);
@@ -78,12 +77,7 @@ sub srv_tree {
         return if index($obj, "\n") >= 0;
         sub {
                 $ctx->{-wcb} = $_[0]; # HTTP::{Chunked,Identity}
-                if ($ctx->{env}->{'pi-httpd.async'}) {
-                        async_check($ctx, $obj, \&tree_show, $ctx);
-                } else {
-                        $ctx->{git}->check_async($obj, \&tree_show, $ctx);
-                        $ctx->{git}->async_wait_all;
-                }
+                PublicInbox::ViewVCS::do_check_async($ctx, \&tree_show, $obj);
         };
 }