Bug 903354 - GC: Remove unused AutoPropertyDescriptorRooter r=terrence

This commit is contained in:
Jon Coppeard 2013-08-12 12:09:19 +01:00
parent 8d0a37229f
commit eeb7224bae
3 changed files with 0 additions and 35 deletions

View File

@ -408,12 +408,6 @@ AutoGCRooter::trace(JSTracer *trc)
return;
}
case DESCRIPTOR : {
PropertyDescriptor &desc = *static_cast<AutoPropertyDescriptorRooter *>(this);
desc.trace(trc);
return;
}
case ID:
MarkIdRoot(trc, &static_cast<AutoIdRooter *>(this)->id_, "JS::AutoIdRooter.id_");
return;

View File

@ -117,7 +117,6 @@ class JS_PUBLIC_API(AutoGCRooter) {
DESCRIPTORS = -7, /* js::AutoPropDescArrayRooter */
ID = -9, /* js::AutoIdRooter */
VALVECTOR = -10, /* js::AutoValueVector */
DESCRIPTOR = -11, /* js::AutoPropertyDescriptorRooter */
STRING = -12, /* js::AutoStringRooter */
IDVECTOR = -13, /* js::AutoIdVector */
OBJVECTOR = -14, /* js::AutoObjectVector */

View File

@ -931,34 +931,6 @@ class AutoPropDescArrayRooter : private AutoGCRooter
SkipRoot skip;
};
class AutoPropertyDescriptorRooter : private AutoGCRooter, public PropertyDescriptor
{
SkipRoot skip;
public:
AutoPropertyDescriptorRooter(JSContext *cx)
: AutoGCRooter(cx, DESCRIPTOR), skip(cx, MOZ_THIS_IN_INITIALIZER_LIST())
{
obj = NULL;
attrs = 0;
getter = (PropertyOp) NULL;
setter = (StrictPropertyOp) NULL;
value.setUndefined();
}
AutoPropertyDescriptorRooter(JSContext *cx, PropertyDescriptor *desc)
: AutoGCRooter(cx, DESCRIPTOR), skip(cx, MOZ_THIS_IN_INITIALIZER_LIST())
{
obj = desc->obj;
attrs = desc->attrs;
getter = desc->getter;
setter = desc->setter;
value = desc->value;
}
friend void AutoGCRooter::trace(JSTracer *trc);
};
/*
* Make an object with the specified prototype. If parent is null, it will
* default to the prototype's global if the prototype is non-null.