Bug 1050035 (part 2) - Remove the fallible version of PL_DHashTableInit(). r=froydnj,mrbkap.

Because it's no longer needed now that entry storage isn't allocated there.
(The other possible causes of failures are much less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible.
This commit is contained in:
Nicholas Nethercote
2015-02-01 20:19:08 -08:00
parent 1b36fac50d
commit 071d261bc7
23 changed files with 137 additions and 362 deletions

View File

@@ -1155,8 +1155,7 @@ nsCacheService::Init()
}
// initialize hashtable for active cache entries
rv = mActiveEntries.Init();
if (NS_FAILED(rv)) return rv;
mActiveEntries.Init();
// create profile/preference observer
if (!mObserver) {