Skip to content
Browse files

remove unused overloading

  • Loading branch information...
1 parent d906bec commit bef7a9d2fcb72176551a168d05ff15fee2a1bf42 @miyagawa committed Sep 19, 2013
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/Module/CPANfile/Requirement.pm
View
8 lib/Module/CPANfile/Requirement.pm
@@ -1,16 +1,10 @@
package Module::CPANfile::Requirement;
use strict;
-use overload q("") => sub { $_[0]->version }, fallback => 1;
-
-sub as_hashref {
- my $self = shift;
- return +{ %$self };
-}
sub options {
my $self = shift;
- my $hash = $self->as_hashref;
+ my $hash = { %$self }; # clone
delete $hash->{$_} for qw( name version );
$hash;

0 comments on commit bef7a9d

Please sign in to comment.
Something went wrong with that request. Please try again.