Überflüssige Funktion
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:25:48 +0000 (16:25 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:25:48 +0000 (16:25 +0100)
Conflicts:

SL/DB/Order.pm

SL/DB/Order.pm

index 573e4f5..1be7b22 100644 (file)
@@ -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) = @_;