diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-14 13:47:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-14 14:38:14 -0500 |
commit | 131eb38b3800c8ede6e3b981538edfc062ef7a0b (patch) | |
tree | f68d1f2f27b7a0c09e1ac53ef92832174ce95b0d /lib/Text/Handlebars.pm | |
parent | 1bd9194b87f14c81133a8d1a4d17ca02d787dc5c (diff) | |
download | text-handlebars-131eb38b3800c8ede6e3b981538edfc062ef7a0b.tar.gz text-handlebars-131eb38b3800c8ede6e3b981538edfc062ef7a0b.zip |
this doesn't need to be a function either
Diffstat (limited to 'lib/Text/Handlebars.pm')
-rw-r--r-- | lib/Text/Handlebars.pm | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Text/Handlebars.pm b/lib/Text/Handlebars.pm index 0a02f77..d104003 100644 --- a/lib/Text/Handlebars.pm +++ b/lib/Text/Handlebars.pm @@ -124,15 +124,6 @@ sub default_functions { return { %{ $class->SUPER::default_functions(@_) }, %{ $class->default_helpers }, - '(is_falsy)' => sub { - my ($val) = @_; - if (ref($val) && ref($val) eq 'ARRAY') { - return @$val == 0; - } - else { - return !$val; - } - }, '(is_code)' => sub { my ($val) = @_; return ref($val) && ref($val) eq 'CODE'; |