Bug 1415799 - Remove PREF_ClearUserPref() forward declaration. r=glandium
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 09 Nov 2017 17:59:12 +1100
changeset 444413 66c548fb700ce3d1b2085aa0fae19bead57744d8
parent 444412 1ac606e618639da441d54024dea61315d8f468b0
child 444414 14ad11ba54d7daea9fbe68fe7e1bf9e821d6989c
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1415799
milestone58.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 1415799 - Remove PREF_ClearUserPref() forward declaration. r=glandium It's not needed. MozReview-Commit-ID: AqKeBuxZJh3
modules/libpref/Preferences.cpp
--- a/modules/libpref/Preferences.cpp
+++ b/modules/libpref/Preferences.cpp
@@ -268,19 +268,16 @@ private:
 struct PrefHashEntry : PLDHashEntryHdr
 {
   PrefTypeFlags mPrefFlags; // this field first to minimize 64-bit struct size
   const char* mKey;
   PrefValue mDefaultPref;
   PrefValue mUserPref;
 };
 
-static nsresult
-PREF_ClearUserPref(const char* aPrefName);
-
 static void
 ClearPrefEntry(PLDHashTable* aTable, PLDHashEntryHdr* aEntry)
 {
   auto pref = static_cast<PrefHashEntry*>(aEntry);
   if (pref->mPrefFlags.IsTypeString()) {
     free(const_cast<char*>(pref->mDefaultPref.mStringVal));
     free(const_cast<char*>(pref->mUserPref.mStringVal));
   }