From: Moritz Bunkus Date: Wed, 12 Jan 2011 15:25:48 +0000 (+0100) Subject: Überflüssige Funktion X-Git-Tag: release-2.6.3~61^2~9^2~3^2~15^2~51 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/a040e91fba51d85031b0b388ec3965da24f2dc31?ds=sidebyside Überflüssige Funktion Conflicts: SL/DB/Order.pm --- diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 573e4f5c5..1be7b22bf 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -86,18 +86,6 @@ sub end_invoice { return shift()->invoices(query => [ abschlag => 0 ]); } -sub convert_to { - my ($self, %params) = @_; - - my $destination_type = lc(delete $params{destination_type}); - - if ($destination_type eq 'invoice') { - $self->convert_to_invoice(%params); - } else { - croak("Unsupported destination type `$destination_type'"); - } -} - sub convert_to_invoice { my ($self, %params) = @_;