From 38b464ee6e94804eb1ae575137c4cdc536536635 Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Wed, 18 May 2011 13:40:55 +0900 Subject: [PATCH] Bug 656205 - Remove unused browser migration code. r=mak77 --- browser/components/build/nsBrowserCompsCID.h | 19 - browser/components/build/nsModule.cpp | 30 - .../components/migration/content/migration.js | 7 +- .../migration/content/migration.xul | 28 +- browser/components/migration/src/Makefile.in | 6 - .../migration/src/nsCaminoProfileMigrator.cpp | 115 --- .../migration/src/nsCaminoProfileMigrator.h | 61 -- .../src/nsDogbertProfileMigrator.cpp | 672 ------------------ .../migration/src/nsDogbertProfileMigrator.h | 89 --- .../migration/src/nsICabProfileMigrator.cpp | 116 --- .../migration/src/nsICabProfileMigrator.h | 61 -- .../migration/src/nsMacIEProfileMigrator.cpp | 259 ------- .../migration/src/nsMacIEProfileMigrator.h | 66 -- .../src/nsOmniWebProfileMigrator.cpp | 116 --- .../migration/src/nsOmniWebProfileMigrator.h | 61 -- .../migration/src/nsOperaProfileMigrator.h | 1 + .../src/nsPhoenixProfileMigrator.cpp | 438 ------------ .../migration/src/nsPhoenixProfileMigrator.h | 87 --- .../migration/src/nsProfileMigrator.cpp | 17 - .../migration/src/nsProfileMigrator.h | 2 +- .../chrome/browser/migration/migration.dtd | 16 - .../browser/migration/migration.properties | 29 - 22 files changed, 6 insertions(+), 2290 deletions(-) delete mode 100644 browser/components/migration/src/nsCaminoProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsCaminoProfileMigrator.h delete mode 100644 browser/components/migration/src/nsDogbertProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsDogbertProfileMigrator.h delete mode 100644 browser/components/migration/src/nsICabProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsICabProfileMigrator.h delete mode 100644 browser/components/migration/src/nsMacIEProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsMacIEProfileMigrator.h delete mode 100644 browser/components/migration/src/nsOmniWebProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsOmniWebProfileMigrator.h delete mode 100644 browser/components/migration/src/nsPhoenixProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsPhoenixProfileMigrator.h diff --git a/browser/components/build/nsBrowserCompsCID.h b/browser/components/build/nsBrowserCompsCID.h index cd6a7c6f7e43..277f37e6570c 100644 --- a/browser/components/build/nsBrowserCompsCID.h +++ b/browser/components/build/nsBrowserCompsCID.h @@ -46,33 +46,14 @@ #ifdef XP_MACOSX #define NS_SAFARIPROFILEMIGRATOR_CID \ { 0x29e3b139, 0xad19, 0x44f3, { 0xb2, 0xc2, 0xe9, 0xf1, 0x3b, 0xa2, 0xbb, 0xc6 } } - -#define NS_MACIEPROFILEMIGRATOR_CID \ -{ 0xf1a4e549, 0x5c4b, 0x41ff, { 0xb5, 0xe3, 0xeb, 0x87, 0xae, 0x31, 0x41, 0x9b } } - -#define NS_OMNIWEBPROFILEMIGRATOR_CID \ -{ 0xb80ae6d8, 0x766c, 0x43da, { 0x9c, 0x7a, 0xd, 0x82, 0x44, 0x52, 0x61, 0x6a } } - -#define NS_CAMINOPROFILEMIGRATOR_CID \ -{ 0x01d88ea9, 0x0feb, 0x495e, { 0x8c, 0x9b, 0x41, 0x65, 0x99, 0x55, 0x52, 0x65 } } - -#define NS_ICABPROFILEMIGRATOR_CID \ -{ 0xf394a036, 0xc5e1, 0x46d8, { 0x99, 0x39, 0x6b, 0x35, 0xe1, 0x13, 0x0a, 0x27 } } - #endif #define NS_OPERAPROFILEMIGRATOR_CID \ { 0xf34ff792, 0x722e, 0x4490, { 0xb1, 0x95, 0x47, 0xd2, 0x42, 0xed, 0xca, 0x1c } } -#define NS_DOGBERTPROFILEMIGRATOR_CID \ -{ 0x24f92fae, 0xf793, 0x473b, { 0x80, 0x61, 0x71, 0x34, 0x8, 0xbd, 0x11, 0xd5 } } - #define NS_SEAMONKEYPROFILEMIGRATOR_CID \ { 0x9a28ffa7, 0xe6ef, 0x4b52, { 0xa1, 0x27, 0x6a, 0xd9, 0x51, 0xde, 0x8e, 0x9b } } -#define NS_PHOENIXPROFILEMIGRATOR_CID \ -{ 0x78481e4a, 0x50e4, 0x4489, { 0xb6, 0x8a, 0xef, 0x82, 0x67, 0xe, 0xd6, 0x3f } } - #define NS_SHELLSERVICE_CID \ { 0x63c7b9f4, 0xcc8, 0x43f8, { 0xb6, 0x66, 0xa, 0x66, 0x16, 0x55, 0xcb, 0x73 } } diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp index f3a577c9f3c6..59f71d892fb7 100644 --- a/browser/components/build/nsModule.cpp +++ b/browser/components/build/nsModule.cpp @@ -50,20 +50,14 @@ #endif #include "nsProfileMigrator.h" -#include "nsDogbertProfileMigrator.h" #if !defined(XP_OS2) #include "nsOperaProfileMigrator.h" #endif -#include "nsPhoenixProfileMigrator.h" #include "nsSeamonkeyProfileMigrator.h" #if defined(XP_WIN) && !defined(__MINGW32__) #include "nsIEProfileMigrator.h" #elif defined(XP_MACOSX) #include "nsSafariProfileMigrator.h" -#include "nsOmniWebProfileMigrator.h" -#include "nsMacIEProfileMigrator.h" -#include "nsCaminoProfileMigrator.h" -#include "nsICabProfileMigrator.h" #endif #include "rdf.h" @@ -87,21 +81,15 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacShellService) NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGNOMEShellService, Init) #endif -NS_GENERIC_FACTORY_CONSTRUCTOR(nsDogbertProfileMigrator) #if !defined(XP_OS2) NS_GENERIC_FACTORY_CONSTRUCTOR(nsOperaProfileMigrator) #endif -NS_GENERIC_FACTORY_CONSTRUCTOR(nsPhoenixProfileMigrator) NS_GENERIC_FACTORY_CONSTRUCTOR(nsProfileMigrator) NS_GENERIC_FACTORY_CONSTRUCTOR(nsSeamonkeyProfileMigrator) #if defined(XP_WIN) && !defined(__MINGW32__) NS_GENERIC_FACTORY_CONSTRUCTOR(nsIEProfileMigrator) #elif defined(XP_MACOSX) NS_GENERIC_FACTORY_CONSTRUCTOR(nsSafariProfileMigrator) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsOmniWebProfileMigrator) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacIEProfileMigrator) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsCaminoProfileMigrator) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsICabProfileMigrator) #endif NS_GENERIC_FACTORY_CONSTRUCTOR(nsFeedSniffer) @@ -122,16 +110,10 @@ NS_DEFINE_NAMED_CID(NS_WINIEPROFILEMIGRATOR_CID); #elif defined(XP_MACOSX) NS_DEFINE_NAMED_CID(NS_SHELLSERVICE_CID); NS_DEFINE_NAMED_CID(NS_SAFARIPROFILEMIGRATOR_CID); -NS_DEFINE_NAMED_CID(NS_MACIEPROFILEMIGRATOR_CID); -NS_DEFINE_NAMED_CID(NS_OMNIWEBPROFILEMIGRATOR_CID); -NS_DEFINE_NAMED_CID(NS_CAMINOPROFILEMIGRATOR_CID); -NS_DEFINE_NAMED_CID(NS_ICABPROFILEMIGRATOR_CID); #endif #if !defined(XP_OS2) NS_DEFINE_NAMED_CID(NS_OPERAPROFILEMIGRATOR_CID); #endif -NS_DEFINE_NAMED_CID(NS_DOGBERTPROFILEMIGRATOR_CID); -NS_DEFINE_NAMED_CID(NS_PHOENIXPROFILEMIGRATOR_CID); NS_DEFINE_NAMED_CID(NS_SEAMONKEYPROFILEMIGRATOR_CID); NS_DEFINE_NAMED_CID(NS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID); @@ -150,16 +132,10 @@ static const mozilla::Module::CIDEntry kBrowserCIDs[] = { #elif defined(XP_MACOSX) { &kNS_SHELLSERVICE_CID, false, NULL, nsMacShellServiceConstructor }, { &kNS_SAFARIPROFILEMIGRATOR_CID, false, NULL, nsSafariProfileMigratorConstructor }, - { &kNS_MACIEPROFILEMIGRATOR_CID, false, NULL, nsMacIEProfileMigratorConstructor }, - { &kNS_OMNIWEBPROFILEMIGRATOR_CID, false, NULL, nsOmniWebProfileMigratorConstructor }, - { &kNS_CAMINOPROFILEMIGRATOR_CID, false, NULL, nsCaminoProfileMigratorConstructor }, - { &kNS_ICABPROFILEMIGRATOR_CID, false, NULL, nsICabProfileMigratorConstructor }, #endif #if !defined(XP_OS2) { &kNS_OPERAPROFILEMIGRATOR_CID, false, NULL, nsOperaProfileMigratorConstructor }, #endif - { &kNS_DOGBERTPROFILEMIGRATOR_CID, false, NULL, nsDogbertProfileMigratorConstructor }, - { &kNS_PHOENIXPROFILEMIGRATOR_CID, false, NULL, nsPhoenixProfileMigratorConstructor }, { &kNS_SEAMONKEYPROFILEMIGRATOR_CID, false, NULL, nsSeamonkeyProfileMigratorConstructor }, { &kNS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID, false, NULL, nsPrivateBrowsingServiceWrapperConstructor }, { NULL } @@ -192,16 +168,10 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = { #elif defined(XP_MACOSX) { NS_SHELLSERVICE_CONTRACTID, &kNS_SHELLSERVICE_CID }, { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "safari", &kNS_SAFARIPROFILEMIGRATOR_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "macie", &kNS_MACIEPROFILEMIGRATOR_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "omniweb", &kNS_OMNIWEBPROFILEMIGRATOR_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "camino", &kNS_CAMINOPROFILEMIGRATOR_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "icab", &kNS_ICABPROFILEMIGRATOR_CID }, #endif #if !defined(XP_OS2) { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "opera", &kNS_OPERAPROFILEMIGRATOR_CID }, #endif - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "dogbert", &kNS_DOGBERTPROFILEMIGRATOR_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "phoenix", &kNS_PHOENIXPROFILEMIGRATOR_CID }, { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "seamonkey", &kNS_SEAMONKEYPROFILEMIGRATOR_CID }, { NS_PRIVATE_BROWSING_SERVICE_CONTRACTID, &kNS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID }, { NULL } diff --git a/browser/components/migration/content/migration.js b/browser/components/migration/content/migration.js index 1d7fb19376f0..34688b7c81ca 100644 --- a/browser/components/migration/content/migration.js +++ b/browser/components/migration/content/migration.js @@ -128,8 +128,7 @@ var MigrationWizard = { return; } - if (migrator.sourceExists && - !(suffix == "phoenix" && !this._autoMigrate)) { + if (migrator.sourceExists) { // Save this as the first selectable item, if we don't already have // one, or if it is the migrator that was passed to us. if (!selectedMigrator || this._source == suffix) @@ -333,15 +332,11 @@ var MigrationWizard = { var source = null; switch (this._source) { case "ie": - case "macie": source = "sourceNameIE"; break; case "opera": source = "sourceNameOpera"; break; - case "dogbert": - source = "sourceNameDogbert"; - break; case "safari": source = "sourceNameSafari"; break; diff --git a/browser/components/migration/content/migration.xul b/browser/components/migration/content/migration.xul index 618fe9280532..7ec730cc0028 100644 --- a/browser/components/migration/content/migration.xul +++ b/browser/components/migration/content/migration.xul @@ -68,43 +68,21 @@ - -#ifdef XP_UNIX #ifdef XP_MACOSX - - - -#else +#elifdef XP_UNIX - - -#endif -#endif -#ifdef XP_WIN +#elifdef XP_WIN #ifndef NO_IE_MIGRATOR #endif - -#endif -#ifndef XP_UNIX -#ifndef XP_WIN +#else - -#endif #endif