diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 2db4d22add6e15ef8b9c67d1cf42b98ae214936b..9022270bdd1c7cce9785bb3734b8f458eba929f9 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -806,13 +806,6 @@ void ActionManager::writeSettings() config->sync(); } -/* -void ActionManager::file_new() -{ - Q_EMIT actionNewMainWindow(); -} -*/ - void ActionManager::file_open() { const QString defaultPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/korganizer/"); @@ -1021,45 +1014,6 @@ bool ActionManager::saveAsURL(const QUrl &url) return success; } -#ifdef AKONADI_PORT_DISABLED // can go away, kept for reference -bool ActionManager::saveModifiedURL() -{ - - // If calendar isn't modified do nothing. - if (!mCalendarView->isModified()) { - return true; - } - - mHtmlExportSync = true; - if (KOPrefs::instance()->mAutoSave && !mURL.isEmpty()) { - // Save automatically, when auto save is enabled. - return saveURL(); - } else { - int result = KMessageBox::warningYesNoCancel( - dialogParent(), - i18n("The calendar has been modified.\nDo you want to save it?"), - QString(), - KStandardGuiItem::save(), KStandardGuiItem::discard()); - switch (result) { - case KMessageBox::Yes: - if (mURL.isEmpty()) { - QUrl url = getSaveURL(); - return saveAsURL(url); - } else { - return saveURL(); - } - case KMessageBox::No: - return true; - case KMessageBox::Cancel: - default: { - mHtmlExportSync = false; - return false; - } - } - } -} -#endif - QUrl ActionManager::getSaveURL() { QUrl url = diff --git a/src/actionmanager.h b/src/actionmanager.h index 8dd29d0632c6ff448ef044bdf4014fe6212f245e..286d807f87c3f58286083a515b84792065d70249 100644 --- a/src/actionmanager.h +++ b/src/actionmanager.h @@ -253,9 +253,6 @@ public Q_SLOTS: protected Q_SLOTS: void setItems(const QStringList &, int); - /** open new window */ - //void file_new(); - /** open a file, load it into the calendar. */ void file_open();