summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-31 08:57:35 +0200
committerMontel Laurent <[email protected]>2016-05-31 08:57:35 +0200
commit0c1340163403e2709c5475bc06145a2403b5862e (patch)
tree362cb2751b4fd06168acd6ccffa270f98005efd4
parent5e61035c5bc92cd919e787d6e59bd7d07bb188b9 (diff)
Remove unused code
-rw-r--r--kaddressbook/kontactplugin/kaddressbook_plugin.cpp26
-rw-r--r--kaddressbook/kontactplugin/kaddressbook_plugin.h1
2 files changed, 0 insertions, 27 deletions
diff --git a/kaddressbook/kontactplugin/kaddressbook_plugin.cpp b/kaddressbook/kontactplugin/kaddressbook_plugin.cpp
index b275115..7930fce 100644
--- a/kaddressbook/kontactplugin/kaddressbook_plugin.cpp
+++ b/kaddressbook/kontactplugin/kaddressbook_plugin.cpp
@@ -69,18 +69,6 @@ KAddressBookPlugin::KAddressBookPlugin(KontactInterface::Core *core, const QVari
"You will be presented with a dialog where you can create a new contact group."));
insertNewAction(action);
- QAction *syncAction =
- new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")),
- i18nc("@action:inmenu", "Sync Contacts"), this);
- actionCollection()->addAction(QStringLiteral("kaddressbook_sync"), syncAction);
- connect(syncAction, &QAction::triggered, this, &KAddressBookPlugin::slotSyncContacts);
- //syncAction->setHelpText(
- // i18nc( "@info:status", "Synchronize groupware contacts" ) );
- syncAction->setWhatsThis(
- i18nc("@info:whatsthis",
- "Choose this option to synchronize your groupware contacts."));
- insertSyncAction(syncAction);
-
mUniqueAppWatcher = new KontactInterface::UniqueAppWatcher(
new KontactInterface::UniqueAppHandlerFactory<KAddressBookUniqueAppHandler>(), this);
}
@@ -161,20 +149,6 @@ void KAddressBookPlugin::shortcutChanged()
}
}
-void KAddressBookPlugin::slotSyncContacts()
-{
-#if 0
- QDBusMessage message =
- QDBusMessage::createMethodCall("org.kde.kmail", "/Groupware",
- "org.kde.kmail.groupware",
- "triggerSync");
- message << QString("Contact");
- QDBusConnection::sessionBus().send(message);
-#else
- qCWarning(KADDRESSBOOKPLUGIN_LOG) << QStringLiteral(" Need to port to AKONADI: KAddressBookPlugin::slotSyncNotes");
-#endif
-}
-
void KAddressBookUniqueAppHandler::loadCommandLineOptions(QCommandLineParser *parser)
{
kaddressbook_options(parser);
diff --git a/kaddressbook/kontactplugin/kaddressbook_plugin.h b/kaddressbook/kontactplugin/kaddressbook_plugin.h
index d4db6f3..5492de5 100644
--- a/kaddressbook/kontactplugin/kaddressbook_plugin.h
+++ b/kaddressbook/kontactplugin/kaddressbook_plugin.h
@@ -61,7 +61,6 @@ protected:
private Q_SLOTS:
void slotNewContact();
void slotNewContactGroup();
- void slotSyncContacts();
private:
KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;