From: Moritz Bunkus Date: Wed, 10 Feb 2021 09:10:30 +0000 (+0100) Subject: SL::DB::Order: überflüssigen Code entfernt X-Git-Tag: kivitendo-mebil_0.1-0~9^2~486 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cd274d3f3c0600fedf42cca0830179cbeb81a535;p=kivitendo-erp.git SL::DB::Order: überflüssigen Code entfernt --- diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 8228def98..cff772a5d 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -315,9 +315,6 @@ sub new_from { croak("Cannot convert from '" . $source->type . "' to '" . $destination_type . "'") if !$from_to; my $is_abbr_any = sub { - # foreach my $abbr (@_) { - # croak "no such abbreviation: '$abbr'" if !grep { $_->{abbr} eq $abbr } @from_tos; - # } any { $from_to->{abbr} eq $_ } @_; };