]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: drop unused $last_commits var
authorEric Wong <e@80x24.org>
Sat, 25 May 2019 09:42:03 +0000 (09:42 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 May 2019 19:01:54 +0000 (19:01 +0000)
Apparently it's never been used and we write to msgmap directly.

lib/PublicInbox/V2Writable.pm

index 1170f32cd7c6ca8e601d2484ee9b16820ab6d70e..a6f044a898b34e869af480eeac848e532657a236 100644 (file)
@@ -965,7 +965,6 @@ sub index_sync {
                        --no-notes --no-color --no-abbrev --no-renames);
 
        # work backwards through history
-       my $last_commit = [];
        for (my $i = $epoch_max; $i >= 0; $i--) {
                my $git_dir = git_dir_n($self, $i);
                die "already reindexing!\n" if delete $self->{reindex_pipe};