mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1483062 - Remove HashTable::maybeCreateTable. r=luke
It's dead. --HG-- extra : rebase_source : c1a6aca3340c09cbe5e9f3ac9a5ea1ae5901ea4e
This commit is contained in:
parent
b8fd63d7b5
commit
44dd70d7d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user