From f2b86a29d52abce4cd03a72f3de32b208bbaf690 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 11 May 2018 17:22:08 +0200 Subject: Flyspray: Remove old debug code Signed-off-by: Florian Pritz --- Bugzilla/Migrate/Flyspray.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm index f38d049ac..70d94c91e 100644 --- a/Bugzilla/Migrate/Flyspray.pm +++ b/Bugzilla/Migrate/Flyspray.pm @@ -267,7 +267,6 @@ sub _read_bugs { my $fsdb = $self->config("flyspray_db"); my $fsprfx = $self->config("flyspray_prefix"); - #my $sth = $self->_select_fs([qw(tasks users)], [qw(task_id product_category project_id item_summary detailed_desc user_name)], {'tasks.opened_by' => \' = users.user_id' }); my $sth = $self->{dbh}->prepare(" SELECT t.task_id, @@ -462,14 +461,11 @@ sub _read_bugs { ispatch => $attachment->{file_type} =~ m/^text\/x-diff/ ? 1 : 0, data_path => $path, }; - #$attachment_item->{mimetype} = mimetype($path) if $attachment_item->{mimetype} eq "" or $attachment_item->{mimetype} !~ m/.+\/.+/; $attachment_item->{mimetype} = mimetype($path); # TODO: set extra_data and type of comment when attachment is part of a comment. # problem: how to get attachment id? not yet in db # change _insert_attachments/_insert_comments? push @{$bug->{attachments}}, $attachment_item; - #$self->debug($bug); - #die if $attachment->{date_added} == 1110715864; } $self->{bug_map}->{$bug->{bug_id}} = $bug; -- cgit v1.2.3-24-g4f1b