From 27c37ba3653e0713e8d8ed3a684f59f29e43e50c Mon Sep 17 00:00:00 2001 From: Albert Xing Date: Mon, 1 Apr 2013 20:31:40 -0700 Subject: [PATCH] Remove welcome project duplicate fix Clean up welcomeProjectsFixed code - Issue #2823 --- src/project/ProjectManager.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/project/ProjectManager.js b/src/project/ProjectManager.js index 2120af7c88c..d2b5783089d 100644 --- a/src/project/ProjectManager.js +++ b/src/project/ProjectManager.js @@ -1345,23 +1345,6 @@ define(function (require, exports, module) { _prefs = PreferencesManager.getPreferenceStorage(module, defaults); //TODO: Remove preferences migration code PreferencesManager.handleClientIdChange(_prefs, "com.adobe.brackets.ProjectManager"); - - if (!_prefs.getValue("welcomeProjectsFixed")) { - // One-time cleanup of duplicates in the welcome projects list--there used to be a bug where - // we would add lots of duplicate entries here. - var welcomeProjects = _prefs.getValue("welcomeProjects"); - if (welcomeProjects) { - var newWelcomeProjects = []; - var i; - for (i = 0; i < welcomeProjects.length; i++) { - if (newWelcomeProjects.indexOf(welcomeProjects[i]) === -1) { - newWelcomeProjects.push(welcomeProjects[i]); - } - } - _prefs.setValue("welcomeProjects", newWelcomeProjects); - _prefs.setValue("welcomeProjectsFixed", true); - } - } // Event Handlers $(FileViewController).on("documentSelectionFocusChange", _documentSelectionFocusChange);