aboutsummaryrefslogtreecommitdiff
path: root/lib/Net/Hawk/Role/WithCrypto.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/Hawk/Role/WithCrypto.pm')
-rw-r--r--lib/Net/Hawk/Role/WithCrypto.pm24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/Net/Hawk/Role/WithCrypto.pm b/lib/Net/Hawk/Role/WithCrypto.pm
deleted file mode 100644
index d8d95e9..0000000
--- a/lib/Net/Hawk/Role/WithCrypto.pm
+++ /dev/null
@@ -1,24 +0,0 @@
-package Net::Hawk::Role::WithCrypto;
-use strict;
-use warnings;
-use 5.010;
-use Package::Variant
- importing => ['Moo::Role'],
- subs => ['has'];
-use Types::Standard 1.000003 qw(HasMethods);
-
-sub make_variant {
- my ($class,$target_package,@methods) = @_;
-
- has _crypto => (
- is => 'ro',
- (@methods ? ( isa => HasMethods[@methods] ) : () ),
- init_arg => 'crypto',
- default => sub {
- require Net::Hawk::Crypto;
- Net::Hawk::Crypto->new;
- },
- );
-}
-
-1;