From: Karen Etheridge Date: Wed, 17 Jul 2013 02:57:33 +0000 (-0700) Subject: make unused vars tests pass X-Git-Tag: v0.36-TRIAL~1^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f2883b2c4c74ee69739b6e5d272ab190c11f039;p=gitmo%2FMooseX-Storage.git make unused vars tests pass --- diff --git a/lib/MooseX/Storage/Engine.pm b/lib/MooseX/Storage/Engine.pm index 9969d5a..5f4f680 100644 --- a/lib/MooseX/Storage/Engine.pm +++ b/lib/MooseX/Storage/Engine.pm @@ -284,14 +284,14 @@ my %TYPES = ( ); sub add_custom_type_handler { - my ($class, $type_name, %handlers) = @_; + my ($self, $type_name, %handlers) = @_; (exists $handlers{expand} && exists $handlers{collapse}) || confess "Custom type handlers need an expand *and* a collapse method"; $TYPES{$type_name} = \%handlers; } sub remove_custom_type_handler { - my ($class, $type_name) = @_; + my ($self, $type_name) = @_; delete $TYPES{$type_name} if exists $TYPES{$type_name}; } diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 20da8db..c652f2e 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -27,7 +27,7 @@ sub peek { } sub _inflate_json { - my ($class, $json) = @_; + my ($self, $json) = @_; eval { require JSON::Any; JSON::Any->import }; confess "Could not load JSON module because : $@" if $@; @@ -43,7 +43,7 @@ sub _inflate_json { } sub _inflate_yaml { - my ($class, $yaml) = @_; + my ($self, $yaml) = @_; require Best; eval { Best->import([[ qw[YAML::Syck YAML] ]]) };