From 7f3f30c024c0d46b528dcce898ed764e9551af65 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Mon, 15 Mar 2010 15:41:28 +0100
Subject: [PATCH] Remove Qt Creator 1.0 compability code

It's only the recent projects lists anyway.
---
 src/plugins/projectexplorer/projectexplorer.cpp | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 9b282285a99..2cf2eeec962 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -728,23 +728,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
     addAutoReleasedObject(new ProjectTreeWidgetFactory);
     addAutoReleasedObject(new FolderNavigationWidgetFactory);
 
-    // > -- Creator 1.0 compatibility code
-    QStringList oldRecentProjects;
-    if (QSettings *s = core->settings())
-        oldRecentProjects = s->value("ProjectExplorer/RecentProjects/Files", QStringList()).toStringList();
-    for (QStringList::iterator it = oldRecentProjects.begin(); it != oldRecentProjects.end(); ) {
-        if (QFileInfo(*it).isFile()) {
-            ++it;
-        } else {
-            it = oldRecentProjects.erase(it);
-        }
-    }
-
-    foreach(const QString &s, oldRecentProjects) {
-        d->m_recentProjects.append(qMakePair(s, QFileInfo(s).fileName()));
-    }
-    // < -- Creator 1.0 compatibility code
-
     if (QSettings *s = core->settings()) {
         const QStringList fileNames = s->value("ProjectExplorer/RecentProjects/FileNames").toStringList();
         const QStringList displayNames = s->value("ProjectExplorer/RecentProjects/DisplayNames").toStringList();
-- 
GitLab