Commit d18877af authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove unused code

parent e3dd0446
......@@ -397,9 +397,6 @@ QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grant
if (!style->vCardName().isEmpty()) {
headerObject.insert(QStringLiteral("vcardname"), style->vCardName());
}
if (!style->collectionName().isEmpty()) {
headerObject.insert(QStringLiteral("collectionname"), style->collectionName());
}
if (isPrinting) {
//provide a bit more left padding when printing
......
......@@ -50,7 +50,6 @@ public:
GrantleeTheme::Theme mTheme;
const HeaderStrategy *mStrategy = nullptr;
QString mVCardName;
QString mCollectionName;
QString mAttachmentHtml;
MimeTreeParser::NodeHelper *mNodeHelper = nullptr;
QObject *mSourceObject = nullptr;
......@@ -172,16 +171,6 @@ GrantleeTheme::Theme HeaderStyle::theme() const
return d->mTheme;
}
void HeaderStyle::setCollectionName(const QString &name)
{
d->mCollectionName = name;
}
QString HeaderStyle::collectionName() const
{
return d->mCollectionName;
}
bool HeaderStyle::readOnlyMessage() const
{
return d->mReadOnlyMessage;
......
......@@ -108,8 +108,6 @@ public:
void setTheme(const GrantleeTheme::Theme &theme);
Q_REQUIRED_RESULT GrantleeTheme::Theme theme() const;
void setCollectionName(const QString &name);
Q_REQUIRED_RESULT QString collectionName() const;
Q_REQUIRED_RESULT bool readOnlyMessage() const;
void setReadOnlyMessage(bool readOnlyMessage);
......
......@@ -952,10 +952,7 @@ QString ViewerPrivate::writeMessageHeader(KMime::Message *aMsg, KMime::Content *
status.setStatusFromFlags(mMessageItem.flags());
headerStylePlugin()->headerStyle()->setMessageStatus(status);
headerStylePlugin()->headerStyle()->setCollectionName(
mMessageItem.parentCollection().displayName());
} else {
headerStylePlugin()->headerStyle()->setCollectionName(QString());
headerStylePlugin()->headerStyle()->setReadOnlyMessage(true);
}
......
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