From: Matt S Trout Date: Sat, 11 Feb 2012 19:36:59 +0000 (+0000) Subject: remove vestigial _is_scalar_ref sub X-Git-Tag: v0.009014~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9cd9ad13e1356a22f50ef5dc59dea2fd3cbd3c5;p=gitmo%2FMoo.git remove vestigial _is_scalar_ref sub --- diff --git a/lib/Role/Tiny.pm b/lib/Role/Tiny.pm index 6af899f..e9d8b73 100644 --- a/lib/Role/Tiny.pm +++ b/lib/Role/Tiny.pm @@ -22,11 +22,6 @@ sub _load_module { return 1; } -{ # \[] is REF, not SCALAR. \v1 is VSTRING (thanks to doy for that one) - my %reftypes = map +($_ => 1), qw(SCALAR REF VSTRING); - sub _is_scalar_ref { $reftypes{ref($_[0])} } -} - sub import { my $target = caller; my $me = shift;