Permalink
Browse files

remove unused type attribute in Core::Role::Engine

  • Loading branch information...
1 parent fdc3737 commit 27457a52768329c7b503ba2634bdd0b9d10f053b @xdg xdg committed Jan 4, 2013
@@ -6,12 +6,6 @@ use Dancer::Core::Types;
with 'Dancer::Core::Role::Hookable';
-has type => (
- is => 'ro',
- lazy => 1,
- builder => 1,
-);
-
has environment => (is => 'ro');
has location => (is => 'ro');
@@ -28,6 +22,4 @@ has config => (
default => sub { {} },
);
-requires '_build_type';
-
1;
@@ -14,8 +14,6 @@ sub supported_hooks {
);
}
-sub _build_type {'Logger'}
-
# This is the only method to implement by logger engines.
# It receives the following arguments:
# $msg_level, $msg_content, it gets called only if the configuration allows
@@ -13,8 +13,6 @@ sub supported_hooks {
);
}
-sub _build_type {'Serializer'}
-
requires 'serialize';
requires 'deserialize';
requires 'loaded';
@@ -38,10 +38,6 @@ sub supported_hooks {
/;
}
-sub _build_type {
- 'SessionFactory';
-} # XXX vs 'Session'? Unused, so I can't tell -- xdg
-
=attr cookie_name
The name of the cookie to create for storing the session key
@@ -19,8 +19,6 @@ sub supported_hooks {
/;
}
-sub _build_type {'Template'}
-
requires 'render';
has name => (
View
@@ -9,6 +9,5 @@ ok($f->does('Dancer::Core::Role::Engine'));
ok($f->does('Dancer::Core::Role::Template'));
is $f->name, 'Tiny';
-is $f->type, 'Template';
done_testing;

0 comments on commit 27457a5

Please sign in to comment.