summaryrefslogtreecommitdiff
path: root/modules/libpref/prefapi.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-12 14:32:03 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-12 14:32:03 +0200
commit37488f629039f32b4c5c0a1a234582e48c24eec5 (patch)
treef5e99b3029cf54409ae5951e9e91cca3a54addc7 /modules/libpref/prefapi.cpp
parent27d78c270706cba59120b7c9ce21d4389a51496c (diff)
downloaduxp-37488f629039f32b4c5c0a1a234582e48c24eec5.tar.gz
Remove MOZ_B2G leftovers and some dead B2G-only components.
Diffstat (limited to 'modules/libpref/prefapi.cpp')
-rw-r--r--modules/libpref/prefapi.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/libpref/prefapi.cpp b/modules/libpref/prefapi.cpp
index 046a694190..8aaf4077bb 100644
--- a/modules/libpref/prefapi.cpp
+++ b/modules/libpref/prefapi.cpp
@@ -573,9 +573,7 @@ nsresult PREF_GetBoolPref(const char *pref_name, bool * return_value, bool get_d
nsresult
PREF_DeleteBranch(const char *branch_name)
{
-#ifndef MOZ_B2G
MOZ_ASSERT(NS_IsMainThread());
-#endif
int len = (int)strlen(branch_name);
@@ -636,9 +634,7 @@ PREF_ClearUserPref(const char *pref_name)
nsresult
PREF_ClearAllUserPrefs()
{
-#ifndef MOZ_B2G
MOZ_ASSERT(NS_IsMainThread());
-#endif
if (!gHashTable)
return NS_ERROR_NOT_INITIALIZED;
@@ -739,18 +735,14 @@ static PrefTypeFlags pref_SetValue(PrefValue* existingValue, PrefTypeFlags flags
PrefHashEntry* pref_HashTableLookup(const char *key)
{
-#ifndef MOZ_B2G
MOZ_ASSERT(NS_IsMainThread());
-#endif
return static_cast<PrefHashEntry*>(gHashTable->Search(key));
}
nsresult pref_HashPref(const char *key, PrefValue value, PrefType type, uint32_t flags)
{
-#ifndef MOZ_B2G
MOZ_ASSERT(NS_IsMainThread());
-#endif
if (!gHashTable)
return NS_ERROR_OUT_OF_MEMORY;