summaryrefslogtreecommitdiff
path: root/lib/Getopt/Dakkar/Role/Piece.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Getopt/Dakkar/Role/Piece.pm')
-rw-r--r--lib/Getopt/Dakkar/Role/Piece.pm16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Getopt/Dakkar/Role/Piece.pm b/lib/Getopt/Dakkar/Role/Piece.pm
index 81c89e7..5b7609d 100644
--- a/lib/Getopt/Dakkar/Role/Piece.pm
+++ b/lib/Getopt/Dakkar/Role/Piece.pm
@@ -12,20 +12,4 @@ has matching_strings => (
);
sub _build_matching_strings($self) { [ $self->name, $self->aliases->@* ] }
-has class => ( is => 'ro', isa => ClassName, default => 'Getopt::Dakkar::Stash' );
-has object => ( is => 'ro', isa => Object );
-has op => ( is => 'ro', isa => Str|CodeRef );
-
-sub make_stash($self,$argpack) {
- if (my $o = $self->object) { return $o }
-
- my $class = use_module($self->class);
- if (my $from_argpack = $class->can('new_from_argpack')) {
- return $class->$from_argpack($argpack);
- }
- else {
- return $class->new();
- }
-}
-
requires qw(parse match);