summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-29 06:36:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-29 06:36:10 (GMT)
commitcb1c5b8b886d8fc8e258a9ece8bd58e89b73e55e (patch)
treeba550cdb24f1c08503db5757d433917464bd3fa9
parent498daa62f4a0443d57fb136793b8e22545b6c491 (diff)
Remove commented code
-rw-r--r--plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp b/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
index c18c477..30b889c 100644
--- a/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
+++ b/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
@@ -632,37 +632,6 @@ public:
msg->removeHeader<KMime::Headers::Bcc>();
}
-#if 0 // For now assume automatic sending
- KMail::Composer *cWin = KMail::makeComposer();
- cWin->ignoreStickyFields();
- cWin->setMsg(msg, false /* mayAutoSign */);
- // cWin->setCharset( "", true );
- cWin->disableWordWrap();
- cWin->setSigningAndEncryptionDisabled(true);
- if (MessageViewer::MessageViewerSettings::self()->exchangeCompatibleInvitations()) {
- // For Exchange, send ical as attachment, with proper parameters
- msg->setSubject(status);
- msg->setCharset("utf-8");
- KMMessagePart *msgPart = new KMMessagePart;
- msgPart->setName("cal.ics");
- // msgPart->setCteStr( attachCte ); // "base64" ?
- msgPart->setBodyEncoded(iCal.toUtf8());
- msgPart->setTypeStr("text");
- msgPart->setSubtypeStr("calendar");
- msgPart->setParameter("method", "reply");
- cWin->addAttach(msgPart);
- }
-
- cWin->forceDisableHtml();
- cWin->disableRecipientNumberCheck();
- cWin->disableForgottenAttachmentsCheck();
- if (MessageViewer::MessageViewerSettings::self()->automaticSending()) {
- cWin->setAttribute(Qt::WA_DeleteOnClose);
- cWin->slotSendNow();
- } else {
- cWin->show();
- }
-#else
msg->assemble();
MailTransport::Transport *transport = MailTransport::TransportManager::self()->transportById(transportId);
@@ -693,8 +662,6 @@ public:
MessageViewer::MessageViewerSettings::self()->deleteInvitationEmailsAfterSendingReply()) {
viewerInstance->deleteMessage();
}
-#endif
-
return true;
}