From: Jesse Luehrs Date: Thu, 16 Jun 2011 16:51:51 +0000 (-0500) Subject: if we aren't calling _inline_return_value, none of this is necessary X-Git-Tag: 2.0008~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=857ebb037f2b88fc18414870610af0fb6daf4755;p=gitmo%2FMoose.git if we aren't calling _inline_return_value, none of this is necessary --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/accessor.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/accessor.pm index dbfe49a..282e885 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/accessor.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/accessor.pm @@ -41,12 +41,6 @@ sub _generate_method { $self->_inline_check_lazy($inv, '$type_constraint', '$type_constraint_obj'), # get 'if (@_ == 1) {', - # XXX: ugh, this is a hack - we need _return_value from - # both ::set and ::get, but we can only have one, so we pick - # the one from ::set and munge it to work for the ::get case - # this should be fixed in a better way - # -doy - 'my @keys_idx = 0;', $self->_inline_check_var_is_valid_key('$_[0]'), $slot_access . '->{$_[0]}', '}',