X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FLogDestination.pm;fp=lib%2FObject%2FRemote%2FLogDestination.pm;h=0000000000000000000000000000000000000000;hb=4e4463355a9ec6afdc7983ee36daa9f11306d4fc;hp=7cdbbd1526296ad5d4ec703359e8fe79216ca9e4;hpb=6536ccd3af048ed71845cc5ea453855f45e66971;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/LogDestination.pm b/lib/Object/Remote/LogDestination.pm deleted file mode 100644 index 7cdbbd1..0000000 --- a/lib/Object/Remote/LogDestination.pm +++ /dev/null @@ -1,23 +0,0 @@ -package Object::Remote::LogDestination; - -use Moo; -use Scalar::Util qw(weaken); - -has logger => ( is => 'ro', required => 1 ); -has subscriptions => ( is => 'ro', required => 1, default => sub { [] } ); - -sub select { - my ($self, $router, $selector) = @_; - my $subscription = $router->subscribe($self->logger, $selector); - push(@{ $self->subscriptions }, $subscription); - return $self; -} - -sub connect { - my ($self, $router) = @_; - return $self->select($router, sub { 1 }); -} - -1; - -