Bug 875304, part 1 - remove some useless malloc checks. r=smaug

This commit is contained in:
Andrew McCreight 2013-05-24 13:25:20 -07:00
Родитель fa0044a326
Коммит 037c7ef2f2
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -374,11 +374,6 @@ public:
void Add(PtrInfo* aEdge) {
if (mCurrent == mBlockEnd) {
Block *b = new Block();
if (!b) {
// This means we just won't collect (some) cycles.
NS_NOTREACHED("out of memory, ignoring edges");
return;
}
*mNextBlockPtr = b;
mCurrent = b->Start();
mBlockEnd = b->End();
@ -805,9 +800,6 @@ public:
{
if (!mFreeList) {
Block *b = new Block;
if (!b) {
return nullptr;
}
StartBlock(b);
// Add the new block as the second block in the list.
@ -824,9 +816,6 @@ public:
nsPurpleBufferEntry* Put(void *p, nsCycleCollectionParticipant *cp)
{
nsPurpleBufferEntry *e = NewEntry();
if (!e) {
return nullptr;
}
++mCount;