about summary refs log tree commit homepage
path: root/lib/PublicInbox/Gcf2Client.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-19 09:37:13 +0000
committerEric Wong <e@80x24.org>2020-09-19 21:39:46 +0000
commit881a5493a8c970c10c051cc55d10d2968e71e691 (patch)
tree2ad0e7a2658ae855b4c1a5bae663633dfca01098 /lib/PublicInbox/Gcf2Client.pm
parent3750b2e2952e55fe4a04c73fc78f25c5e07d0525 (diff)
downloadpublic-inbox-881a5493a8c970c10c051cc55d10d2968e71e691.tar.gz
This amortizes the cost of recreating PublicInbox::Gcf2 objects
when alternates change in v2 all.git.
Diffstat (limited to 'lib/PublicInbox/Gcf2Client.pm')
-rw-r--r--lib/PublicInbox/Gcf2Client.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm
index a048cd1a..30f85c71 100644
--- a/lib/PublicInbox/Gcf2Client.pm
+++ b/lib/PublicInbox/Gcf2Client.pm
@@ -23,19 +23,6 @@ sub new {
         $self;
 }
 
-sub add_git_dir {
-        my ($self, $git_dir) = @_;
-
-        # ensure buffers are drained, length($git_dir) may exceed
-        # PIPE_BUF on platforms where PIPE_BUF is only 512 bytes
-        my $inflight = $self->{inflight};
-        while (scalar(@$inflight)) {
-                $self->cat_async_step($inflight);
-        }
-        print { $self->{out} } $git_dir, "\n" or
-                                $self->fail("write error: $!");
-}
-
 # always false, since -gcf2 retries internally
 sub alternates_changed {}