diff --git a/src/kmkernel.cpp b/src/kmkernel.cpp
index 6f7a8b17f..82c5f953d 100644
--- a/src/kmkernel.cpp
+++ b/src/kmkernel.cpp
@@ -1000,8 +1000,6 @@ void KMKernel::init()
the_firstStart = KMailSettings::self()->firstStart();
KMailSettings::self()->setFirstStart(false);
- the_previousVersion = KMailSettings::self()->previousVersion();
- KMailSettings::self()->setPreviousVersion(QStringLiteral(KDEPIM_VERSION));
the_undoStack = new KMail::UndoStack(20);
@@ -1882,11 +1880,6 @@ bool KMKernel::firstStart() const
return the_firstStart;
}
-QString KMKernel::previousVersion() const
-{
- return the_previousVersion;
-}
-
bool KMKernel::shuttingDown() const
{
return the_shuttingDown;
diff --git a/src/kmkernel.h b/src/kmkernel.h
index a4e82d9ec..dd332b80d 100644
--- a/src/kmkernel.h
+++ b/src/kmkernel.h
@@ -346,7 +346,6 @@ public:
void expireAllFoldersNow();
bool firstStart() const;
- QString previousVersion() const;
bool shuttingDown() const;
void setShuttingDown(bool flag);
@@ -491,9 +490,6 @@ private:
KMail::UndoStack *the_undoStack = nullptr;
MessageComposer::AkonadiSender *the_msgSender = nullptr;
- /** previous KMail version. If different from current,
- the user has just updated. read from config */
- QString the_previousVersion;
/** is this the first start? read from config */
bool the_firstStart = false;
/** are we going down? set from here */
diff --git a/src/settings/kmail.kcfg.cmake b/src/settings/kmail.kcfg.cmake
index 80b7d8795..ef2720d20 100644
--- a/src/settings/kmail.kcfg.cmake
+++ b/src/settings/kmail.kcfg.cmake
@@ -122,10 +122,6 @@
true
-
-
- QLatin1String(KDEPIM_VERSION)
-
true