Bug 1202526 (part 6) - Use PLDHashTable::RemoveEntry() in XULDocument. r=bz.

This avoids repeating the hash table search in order to remove the entry.
This commit is contained in:
Nicholas Nethercote 2015-09-07 19:20:16 -07:00
Родитель b1cf90c1e5
Коммит abe8a4f58a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -839,7 +839,7 @@ XULDocument::RemoveBroadcastListenerFor(Element& aBroadcaster,
delete bl;
if (entry->mListeners.IsEmpty())
PL_DHashTableRemove(mBroadcasterMap, &aBroadcaster);
mBroadcasterMap->RemoveEntry(entry);
break;
}