1 package Moose::Meta::Method::Accessor::Native::Hash::delete;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
10 use base 'Moose::Meta::Method::Accessor::Native::Hash::Writer';
12 sub _adds_members { 0 }
14 sub _potential_value {
15 my ( $self, $slot_access ) = @_;
17 return "( do { my \%potential = %{ $slot_access }; delete \@potential{\@_}; \\\%potential; } )";
20 sub _inline_optimized_set_new_value {
21 my ( $self, $inv, $new, $slot_access ) = @_;
23 return "delete \@{ $slot_access }{\@_}";