mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 903354 - GC: Remove unused AutoPropertyDescriptorRooter r=terrence
This commit is contained in:
parent
8d0a37229f
commit
eeb7224bae
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user