Bug 1146216 - Remove MakeSlotArray(), because it's dead. r=terrence.

This commit is contained in:
Nicholas Nethercote 2015-03-22 19:40:23 -07:00
parent 8f37c8962f
commit 40d93c611c

View File

@ -167,20 +167,6 @@ GCRuntime::tryNewNurseryObject(JSContext *cx, size_t thingSize, size_t nDynamicS
return nullptr;
}
typedef mozilla::UniquePtr<HeapSlot, JS::FreePolicy> UniqueSlots;
static inline UniqueSlots
MakeSlotArray(ExclusiveContext *cx, size_t count)
{
HeapSlot *slots = nullptr;
if (count) {
slots = cx->zone()->pod_malloc<HeapSlot>(count);
if (slots)
Debug_SetSlotRangeToCrashOnTouch(slots, count);
}
return UniqueSlots(slots);
}
template <AllowGC allowGC>
JSObject *
GCRuntime::tryNewTenuredObject(ExclusiveContext *cx, AllocKind kind, size_t thingSize,