From d6622a8607db5eb9f1bd35e16311b3cfd375196e Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Thu, 5 May 2016 15:01:17 +0200 Subject: Dialog: delegate logging to the Module --- lib/ManaTools/Shared/GUI/Dialog.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ManaTools/Shared/GUI/Dialog.pm b/lib/ManaTools/Shared/GUI/Dialog.pm index efb8fab7..78a16ffa 100644 --- a/lib/ManaTools/Shared/GUI/Dialog.pm +++ b/lib/ManaTools/Shared/GUI/Dialog.pm @@ -113,6 +113,7 @@ has 'module' => ( is => 'ro', isa => 'ManaTools::Module', required => 1, + handles => ['loc', 'logger', 'D', 'I', 'W', 'E'], ); has 'factory' => ( @@ -323,11 +324,6 @@ has 'result' => ( } ); -sub loc { - my $self = shift; - return $self->module->loc(@_); -} - #============================================================= =head2 checkFields -- cgit v1.2.1