Commit 2161b5ad authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up

parent d1087a17
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
*/ */
#include "exportakregatorjobinterface.h" #include "exportakregatorjobinterface.h"
#include <MailCommon/MailUtil>
#include <AkonadiCore/AgentManager>
#include <KLocalizedString> #include <KLocalizedString>
#include <KZip> #include <KZip>
...@@ -51,7 +49,8 @@ void ExportAkregatorJobInterface::start() ...@@ -51,7 +49,8 @@ void ExportAkregatorJobInterface::start()
Akonadi::Collection::Id ExportAkregatorJobInterface::convertFolderPathToCollectionId(const QString &path) Akonadi::Collection::Id ExportAkregatorJobInterface::convertFolderPathToCollectionId(const QString &path)
{ {
return MailCommon::Util::convertFolderPathToCollectionId(path); //Unusued
return -1;
} }
void ExportAkregatorJobInterface::slotCheckBackupConfig() void ExportAkregatorJobInterface::slotCheckBackupConfig()
......
...@@ -51,7 +51,8 @@ void ImportAkregatorJobInterface::start() ...@@ -51,7 +51,8 @@ void ImportAkregatorJobInterface::start()
Akonadi::Collection::Id ImportAkregatorJobInterface::convertFolderPathToCollectionId(const QString &path) Akonadi::Collection::Id ImportAkregatorJobInterface::convertFolderPathToCollectionId(const QString &path)
{ {
return MailCommon::Util::convertFolderPathToCollectionId(path); //Unused here.
return -1;
} }
void ImportAkregatorJobInterface::slotNextStep() void ImportAkregatorJobInterface::slotNextStep()
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "exportcalendarjobinterface.h" #include "exportcalendarjobinterface.h"
#include <MailCommon/MailUtil> #include <MailCommon/MailUtil>
#include <AkonadiCore/AgentManager>
#include <KLocalizedString> #include <KLocalizedString>
...@@ -130,6 +129,7 @@ void ExportCalendarJobInterface::backupConfig() ...@@ -130,6 +129,7 @@ void ExportCalendarJobInterface::backupConfig()
for (const QString &key : keyList) { for (const QString &key : keyList) {
const int collectionValue = key.toInt(&found); const int collectionValue = key.toInt(&found);
if (found && collectionValue != -1) { if (found && collectionValue != -1) {
//TODO fixme MailCommon::Util::fullCollectionPath
const QString realPath = MailCommon::Util::fullCollectionPath(Akonadi::Collection(collectionValue)); const QString realPath = MailCommon::Util::fullCollectionPath(Akonadi::Collection(collectionValue));
const QColor color = group.readEntry(key, QColor()); const QColor color = group.readEntry(key, QColor());
group.writeEntry(realPath, color); group.writeEntry(realPath, color);
......
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