From 44fe31326e4b0f816e3bdca0553c1b016a4dbf11 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 6 Feb 2018 13:57:35 +1100 Subject: [PATCH] Bug 1435927 - Remove NS_PREFSERVICE_RESET_TOPIC_ID. r=glandium It's unused. MozReview-Commit-ID: Hhx4MhIVyzQ --HG-- extra : rebase_source : 8d535d85c9e0d68805150f4e80f7083f6c287f0a --- modules/libpref/Preferences.cpp | 2 -- modules/libpref/nsIPrefService.idl | 6 ------ 2 files changed, 8 deletions(-) diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp index 94b3f7656eda..65bb6512001a 100644 --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp @@ -3088,8 +3088,6 @@ Preferences::ResetPrefs() { ENSURE_PARENT_PROCESS("Preferences::ResetPrefs", "all prefs"); - NotifyServiceObservers(NS_PREFSERVICE_RESET_TOPIC_ID); - gHashTable->ClearAndPrepareForLength(PREF_HASHTABLE_INITIAL_LENGTH); gPrefNameArena.Clear(); diff --git a/modules/libpref/nsIPrefService.idl b/modules/libpref/nsIPrefService.idl index 56f1e606664c..237ea1884168 100644 --- a/modules/libpref/nsIPrefService.idl +++ b/modules/libpref/nsIPrefService.idl @@ -130,12 +130,6 @@ interface nsIPrefService : nsISupports */ #define NS_PREFSERVICE_READ_TOPIC_ID "prefservice:before-read-userprefs" -/** - * Notification sent when resetPrefs has been called, but before the actual - * reset process occurs. - */ -#define NS_PREFSERVICE_RESET_TOPIC_ID "prefservice:before-reset" - /** * Notification sent when after reading app-provided default * preferences, but before user profile override defaults are loaded.