Bug 1221923 - Remove pointless "initialized" static in VMFunction::addToFunctions; r=Waldo

This commit is contained in:
Ms2ger 2015-12-18 11:09:45 +01:00
Родитель 4edb68ff1d
Коммит 194f97d366
1 изменённых файлов: 1 добавлений и 7 удалений

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

@ -34,8 +34,7 @@ using namespace js::jit;
namespace js {
namespace jit {
// Don't explicitly initialize, it's not guaranteed that this initializer will
// run before the constructors for static VMFunctions.
// Statics are initialized to null.
/* static */ VMFunction* VMFunction::functions;
AutoDetectInvalidation::AutoDetectInvalidation(JSContext* cx, MutableHandleValue rval)
@ -48,11 +47,6 @@ AutoDetectInvalidation::AutoDetectInvalidation(JSContext* cx, MutableHandleValue
void
VMFunction::addToFunctions()
{
static bool initialized = false;
if (!initialized) {
initialized = true;
functions = nullptr;
}
this->next = functions;
functions = this;
}