]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Remove useless parameters
authorDon Armstrong <don@donarmstrong.com>
Mon, 9 Jun 2008 15:52:18 +0000 (08:52 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 9 Jun 2008 15:52:18 +0000 (08:52 -0700)
 * use Foo->new, not new Foo;

Debbugs/MIME.pm

index 2a695e5859a96a506cceac22c7abba40df44e51b..785997477ce9a3e2af44051f6a76595d02e61155 100644 (file)
@@ -56,12 +56,12 @@ sub getmailbody
     return undef;
 }
 
-sub parse ($)
+sub parse
 {
     # header and decoded body respectively
     my (@headerlines, @bodylines);
 
-    my $parser = new MIME::Parser;
+    my $parser = MIME::Parser->new();
     mkdir "mime.tmp.$$", 0777;
     $parser->output_under("mime.tmp.$$");
     my $entity = eval { $parser->parse_data($_[0]) };