Commit df3217da authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused and broken code

parent eb519025
......@@ -1051,8 +1051,6 @@ void KMMainWidget::createWidgets()
connect(mMsgView->viewer(), &MessageViewer::Viewer::displayPopupMenu, this, &KMMainWidget::slotMessagePopup);
connect(mMsgView->viewer(), &MessageViewer::Viewer::moveMessageToTrash,
this, &KMMainWidget::slotMoveMessageToTrash);
connect(mMsgView->viewer(), &MessageViewer::Viewer::executeMailAction,
this, &KMMainWidget::slotExecuteMailAction);
connect(mMsgView->viewer(), &MessageViewer::Viewer::pageIsScrolledToBottom,
this, &KMMainWidget::slotPageIsScrolledToBottom);
connect(mMsgView->viewer(), &MessageViewer::Viewer::replyMessageTo,
......@@ -4694,33 +4692,6 @@ void KMMainWidget::slotUpdateConfig()
updateHtmlMenuEntry();
}
void KMMainWidget::slotExecuteMailAction(MessageViewer::Viewer::MailAction action)
{
switch (action) {
case MessageViewer::Viewer::Trash:
slotMoveMessageToTrash();
break;
case MessageViewer::Viewer::Reply:
replyCurrentMessageCommand(MessageComposer::ReplySmart);
break;
case MessageViewer::Viewer::ReplyToAll:
replyCurrentMessageCommand(MessageComposer::ReplyAll);
break;
case MessageViewer::Viewer::Forward:
slotRedirectCurrentMessage();
break;
case MessageViewer::Viewer::NewMessage:
slotCompose();
break;
case MessageViewer::Viewer::Print:
printCurrentMessage(false);
break;
case MessageViewer::Viewer::PrintPreview:
printCurrentMessage(true);
break;
}
}
void KMMainWidget::printCurrentMessage(bool preview)
{
bool result = false;
......
......@@ -556,7 +556,6 @@ private Q_SLOTS:
void slotMarkAllMessageAsReadInCurrentFolderAndSubfolder();
void slotRemoveDuplicateRecursive();
void slotExecuteMailAction(MessageViewer::Viewer::MailAction action);
void slotRedirectCurrentMessage();
void slotEditCurrentVacation();
void slotReplyMessageTo(const KMime::Message::Ptr &message, bool replyToAll);
......
......@@ -201,30 +201,6 @@ Akonadi::Collection KMReaderMainWin::parentCollection() const
}
}
void KMReaderMainWin::slotExecuteMailAction(MessageViewer::Viewer::MailAction action)
{
switch (action) {
case MessageViewer::Viewer::Trash:
slotTrashMessage();
break;
case MessageViewer::Viewer::Reply:
slotCustomReplyToMsg(QString());
break;
case MessageViewer::Viewer::ReplyToAll:
slotCustomReplyAllToMsg(QString());
break;
case MessageViewer::Viewer::Forward:
slotRedirectMessage();
break;
case MessageViewer::Viewer::NewMessage:
break;
case MessageViewer::Viewer::Print:
break;
case MessageViewer::Viewer::PrintPreview:
break;
}
}
void KMReaderMainWin::slotTrashMessage()
{
if (!mMsg.isValid()) {
......@@ -376,7 +352,6 @@ void KMReaderMainWin::setupAccel()
setStandardToolBarMenuEnabled(true);
KStandardAction::configureToolbars(this, &KMReaderMainWin::slotEditToolbars, actionCollection());
connect(mReaderWin->viewer(), &MessageViewer::Viewer::moveMessageToTrash, this, &KMReaderMainWin::slotTrashMessage);
connect(mReaderWin->viewer(), &MessageViewer::Viewer::executeMailAction, this, &KMReaderMainWin::slotExecuteMailAction);
}
QAction *KMReaderMainWin::copyActionMenu(QMenu *menu)
......
......@@ -57,7 +57,6 @@ public:
private Q_SLOTS:
void slotMessagePopup(const Akonadi::Item &aMsg, const WebEngineViewer::WebHitTestResult &result, const QPoint &aPoint);
void slotContactSearchJobForMessagePopupDone(KJob *);
void slotExecuteMailAction(MessageViewer::Viewer::MailAction action);
void slotTrashMessage();
void slotForwardInlineMsg();
void slotForwardAttachedMessage();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment