Bug 990290 - Remove JS_GetObjectId. r=terrence

This commit is contained in:
Bobby Holley 2014-04-11 07:59:47 -07:00
parent 91739ca9b3
commit 60b28294e0
2 changed files with 0 additions and 26 deletions

View File

@ -2393,24 +2393,6 @@ JS_GetConstructor(JSContext *cx, HandleObject proto)
return &cval.toObject();
}
JS_PUBLIC_API(bool)
JS_GetObjectId(JSContext *cx, HandleObject obj, MutableHandleId idp)
{
AssertHeapIsIdle(cx);
assertSameCompartment(cx, obj);
#ifdef JSGC_GENERATIONAL
// Ensure that the object is tenured before returning it.
if (IsInsideNursery(cx->runtime(), obj)) {
MinorGC(cx, JS::gcreason::EVICT_NURSERY);
MOZ_ASSERT(!IsInsideNursery(cx->runtime(), obj));
}
#endif
idp.set(OBJECT_TO_JSID(obj));
return true;
}
namespace {
class AutoCompartmentRooter : private JS::CustomAutoRooter

View File

@ -2528,14 +2528,6 @@ JS_SetParent(JSContext *cx, JS::HandleObject obj, JS::HandleObject parent);
extern JS_PUBLIC_API(JSObject *)
JS_GetConstructor(JSContext *cx, JS::Handle<JSObject*> proto);
/*
* Get a unique identifier for obj, good for the lifetime of obj (even if it
* is moved by a copying GC). Return false on failure (likely out of memory),
* and true with *idp containing the unique id on success.
*/
extern JS_PUBLIC_API(bool)
JS_GetObjectId(JSContext *cx, JS::HandleObject obj, JS::MutableHandleId idp);
namespace JS {
enum ZoneSpecifier {