Commit ba956650 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Fix "Unused parameters" warnings

parent 7cdaae14
Pipeline #33439 failed with stage
in 80 minutes and 48 seconds
......@@ -198,6 +198,8 @@ void CalendarTaskBaseHandler::itemAdded(const Akonadi::Item &item,
void CalendarTaskBaseHandler::itemChanged(const Akonadi::Item &item,
const QSet<QByteArray> &parts)
{
Q_UNUSED(parts);
if (!item.hasPayload<Incidence::Ptr>()) {
qCDebug(ETESYNC_LOG) << "Received item with unknown payload";
mResource->cancelTask(i18n("Received item with unknown payload %1", item.mimeType()));
......@@ -276,6 +278,8 @@ void CalendarTaskBaseHandler::itemRemoved(const Akonadi::Item &item)
void CalendarTaskBaseHandler::collectionAdded(const Akonadi::Collection &collection, const Akonadi::Collection &parent)
{
Q_UNUSED(parent);
const QString journalUid = QStringFromCharPtr(CharPtr(etesync_gen_uid()));
EteSyncJournalPtr journal = etesync_journal_new(journalUid, ETESYNC_CURRENT_VERSION);
......
......@@ -195,6 +195,8 @@ void ContactHandler::itemAdded(const Akonadi::Item &item,
void ContactHandler::itemChanged(const Akonadi::Item &item,
const QSet<QByteArray> &parts)
{
Q_UNUSED(parts);
if (!item.hasPayload<KContacts::Addressee>()) {
qCDebug(ETESYNC_LOG) << "Received item with unknown payload";
mResource->cancelTask(i18n("Received item with unknown payload %1", item.mimeType()));
......@@ -279,6 +281,8 @@ void ContactHandler::itemRemoved(const Akonadi::Item &item)
void ContactHandler::collectionAdded(const Akonadi::Collection &collection, const Akonadi::Collection &parent)
{
Q_UNUSED(parent);
const QString journalUid = QStringFromCharPtr(CharPtr(etesync_gen_uid()));
EteSyncJournalPtr journal = etesync_journal_new(journalUid, ETESYNC_CURRENT_VERSION);
......
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