Bug 1131940 - Delete unused getMigratedData method in ResetProfile.jsm. r=MattN
authorAnkit Goyal <ankit.goyal90@hotmail.com>
Fri, 13 Feb 2015 11:26:00 +0100
changeset 256170 f0048ba132131de0a7816b4173db52914b058f95
parent 256169 93f2c43f45e0834858e236140512dabca3bb92b0
child 256171 2a6a0c025c7bf06c235b75ec6498de351b31cab5
child 256433 fb12667e01478a930230af5695f83d4e4b4115bd
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1131940
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1131940 - Delete unused getMigratedData method in ResetProfile.jsm. r=MattN
toolkit/modules/ResetProfile.jsm
--- a/toolkit/modules/ResetProfile.jsm
+++ b/toolkit/modules/ResetProfile.jsm
@@ -29,42 +29,16 @@ this.ResetProfile = {
         ("@mozilla.org/profile/migrator;1?app=" + MOZ_BUILD_APP + "&type=" + MOZ_APP_NAME in Cc);
     } catch (e) {
       // Catch exception when there is no selected profile.
       Cu.reportError(e);
     }
     return false;
   },
 
-  getMigratedData: function() {
-    Cu.import("resource:///modules/MigrationUtils.jsm");
-
-    // From migration.properties
-    const MIGRATED_TYPES = [
-      128,// Windows/Tabs
-      4,  // History and Bookmarks
-      16, // Passwords
-      8,  // Form History
-      2,  // Cookies
-    ];
-
-    // Loop over possible data to migrate to give the user a list of what will be preserved.
-    let dataTypes = [];
-    for (let itemID of MIGRATED_TYPES) {
-      try {
-        let typeName = MigrationUtils.getLocalizedString(itemID + "_" + MOZ_APP_NAME);
-        dataTypes.push(typeName);
-      } catch (x) {
-        // Catch exceptions when the string for a data type doesn't exist.
-        Cu.reportError(x);
-      }
-    }
-    return dataTypes;
-  },
-
   /**
    * Ask the user if they wish to restart the application to reset the profile.
    */
   openConfirmationDialog: function(window) {
     // Prompt the user to confirm.
     let params = {
       reset: false,
     };