]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/GitAsyncCat.pm
ds: remove fields.pm usage
[public-inbox.git] / lib / PublicInbox / GitAsyncCat.pm
index 098101aed00843633eb239443a1a9c61f3cdf937..0b777204a7ccfe021fe102c3218c2af4de5565ce 100644 (file)
 package PublicInbox::GitAsyncCat;
 use strict;
 use parent qw(PublicInbox::DS Exporter);
-use fields qw(git);
 use PublicInbox::Syscall qw(EPOLLIN EPOLLET);
 our @EXPORT = qw(git_async_cat);
 
 sub _add {
        my ($class, $git) = @_;
-       my $self = fields::new($class);
        $git->batch_prepare;
+       my $self = bless { git => $git }, $class;
        $self->SUPER::new($git->{in}, EPOLLIN|EPOLLET);
-       $self->{git} = $git;
        \undef; # this is a true ref()
 }