Bug 713553 - Remove GetRTStringByIndex; r=bholley
authorMs2ger <ms2ger@gmail.com>
Wed, 28 Dec 2011 09:13:37 +0100
changeset 84629 39756fe9312f4662f7841a6a196820cb29300cf3
parent 84628 e1aa4ed3f691e598a64f23a78cd678cd0f8ad2cb
child 84630 fbef0361b27aa9e5fe111eaaa9c02101972ef169
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs713553
milestone12.0a1
Bug 713553 - Remove GetRTStringByIndex; r=bholley
js/xpconnect/src/XPCInlines.h
js/xpconnect/src/xpcprivate.h
--- a/js/xpconnect/src/XPCInlines.h
+++ b/js/xpconnect/src/XPCInlines.h
@@ -668,22 +668,16 @@ xpc_NewSystemInheritingJSObject(JSContex
 
 inline jsid
 GetRTIdByIndex(JSContext *cx, uintN index)
 {
   XPCJSRuntime *rt = nsXPConnect::FastGetXPConnect()->GetRuntime();
   return rt->GetStringID(index);
 }
 
-inline jsval
-GetRTStringByIndex(JSContext *cx, uintN index)
-{
-  return STRING_TO_JSVAL(JSID_TO_STRING(GetRTIdByIndex(cx, index)));
-}
-
 inline
 JSBool ThrowBadParam(nsresult rv, uintN paramNum, XPCCallContext& ccx)
 {
     XPCThrower::ThrowBadParam(rv, paramNum, ccx);
     return false;
 }
 
 inline
--- a/js/xpconnect/src/xpcprivate.h
+++ b/js/xpconnect/src/xpcprivate.h
@@ -4383,19 +4383,16 @@ xpc_EvalInSandbox(JSContext *cx, JSObjec
 // Inlined utilities.
 
 inline JSBool
 xpc_ForcePropertyResolve(JSContext* cx, JSObject* obj, jsid id);
 
 inline jsid
 GetRTIdByIndex(JSContext *cx, uintN index);
 
-inline jsval
-GetRTStringByIndex(JSContext *cx, uintN index);
-
 // Wrapper for JS_NewObject to mark the new object as system when parent is
 // also a system object. If uniqueType is specified then a new type object will
 // be created which is used only by the result, so that its property types
 // will be tracked precisely.
 inline JSObject*
 xpc_NewSystemInheritingJSObject(JSContext *cx, JSClass *clasp, JSObject *proto,
                                 bool uniqueType, JSObject *parent);