Bug 1483062 - Remove HashTable::maybeCreateTable. r=luke

It's dead.

--HG--
extra : rebase_source : c1a6aca3340c09cbe5e9f3ac9a5ea1ae5901ea4e
This commit is contained in:
Nicholas Nethercote 2018-08-09 14:19:49 +10:00
parent b8fd63d7b5
commit 44dd70d7d6

View File

@ -1636,17 +1636,6 @@ public:
return table;
}
static Entry* maybeCreateTable(AllocPolicy& aAllocPolicy, uint32_t aCapacity)
{
Entry* table = aAllocPolicy.template maybe_pod_malloc<Entry>(aCapacity);
if (table) {
for (uint32_t i = 0; i < aCapacity; i++) {
new (&table[i]) Entry();
}
}
return table;
}
static void destroyTable(AllocPolicy& aAllocPolicy,
Entry* aOldTable,
uint32_t aCapacity)