Commit 3c074281 authored by Laurent Montel's avatar Laurent Montel 😁

Remove dead code

parent 981490f3
Pipeline #34445 passed with stage
in 45 minutes and 49 seconds
......@@ -181,18 +181,10 @@ void TagActionManager::createTagActions(const QVector<MailCommon::Tag::Ptr> &tag
if (!mToolbarActions.isEmpty() && mGUIClient->factory()) {
mGUIClient->plugActionList(QStringLiteral("toolbar_messagetag_actions"), mToolbarActions);
}
if (mMessageInfo.hasMessageInfo()) {
updateActionStates(mMessageInfo.numberOfSelectedMessages, mMessageInfo.selectedItem);
}
}
void TagActionManager::updateActionStates(int numberOfSelectedMessages, const Akonadi::Item &selectedItem)
{
if (mTagFetchInProgress) {
mMessageInfo.numberOfSelectedMessages = numberOfSelectedMessages;
mMessageInfo.selectedItem = selectedItem;
return;
}
mNewTagId = -1;
QMap<qint64, KToggleAction *>::const_iterator it = mTagActions.constBegin();
QMap<qint64, KToggleAction *>::const_iterator end = mTagActions.constEnd();
......
......@@ -89,18 +89,6 @@ Q_SIGNALS:
void tagMoreActionClicked();
private:
struct MessagesInfo {
int numberOfSelectedMessages = -1;
Akonadi::Item selectedItem;
Q_REQUIRED_RESULT bool hasMessageInfo() const {
return numberOfSelectedMessages != -1;
}
void clear() {
numberOfSelectedMessages = -1;
selectedItem = {};
}
};
Q_DISABLE_COPY(TagActionManager)
void newTagActionClicked();
void onSignalMapped(const QString &tag);
......@@ -126,10 +114,8 @@ private:
// The actions of all tags that are in the toolbar
QList<QAction *> mToolbarActions;
MessagesInfo mMessageInfo;
// Uri of a newly created tag
qint64 mNewTagId = -1;
bool mTagFetchInProgress = false;
};
}
......
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