X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUtils.pm;h=8fe7043375a4765ff774b165ecbe94b0d975152c;hb=dcc61a75845d35ef799c6693d3ff514ab46dcb33;hp=3a9a908a8df7ce163e3564cde34ca89de49a483d;hpb=b14151e76ebbd0a776e7955238ce1afbc1985a33;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Utils.pm b/lib/Catalyst/Utils.pm index 3a9a908..8fe7043 100644 --- a/lib/Catalyst/Utils.pm +++ b/lib/Catalyst/Utils.pm @@ -1,7 +1,6 @@ package Catalyst::Utils; use strict; -use attributes (); use Catalyst::Exception; use File::Spec; use HTTP::Request; @@ -24,7 +23,9 @@ See L. =item appprefix($class) -Returns the application prefix for the class +Returns the application prefix for the class. + + MyApp::Foo becomes myapp_foo =cut @@ -35,14 +36,6 @@ sub appprefix { return $class; } -=item attrs($coderef) - -Returns attributes for coderef in a arrayref - -=cut - -sub attrs { attributes::get( $_[0] ) || [] } - =item class2appclass($class); Returns the appclass for class. @@ -205,25 +198,6 @@ sub prefix { return $name; } -=item reflect_actions($class); - -Returns an arrayref containing all actions of a component class. - -=cut - -sub reflect_actions { - my $class = shift; - my $actions = []; - eval '$actions = $class->_action_cache'; - - if ($@) { - Catalyst::Exception->throw( message => - qq/Couldn't reflect actions of component "$class", "$@"/ ); - } - - return $actions; -} - =item request($request) Returns a HTTP::Request object.