Bug 749366, part 2 - remove unused SizeOfJSContext. r=njn
authorAndrew McCreight <amccreight@mozilla.com>
Mon, 27 Aug 2012 10:43:08 -0700
changeset 105620 65e30427c102bfd1c0e635eddb2083bdf0f4e26e
parent 105619 61efc4bbf95b58fffe94dd4d30e5407a5c75173f
child 105621 b4c8fe10f767af3ee5be13626f7b75ff5446af2e
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersnjn
bugs749366
milestone17.0a1
Bug 749366, part 2 - remove unused SizeOfJSContext. r=njn
js/src/jsfriendapi.cpp
js/src/jsfriendapi.h
--- a/js/src/jsfriendapi.cpp
+++ b/js/src/jsfriendapi.cpp
@@ -761,22 +761,16 @@ IsContextRunningJS(JSContext *cx)
 }
 
 JS_FRIEND_API(const CompartmentVector&)
 GetRuntimeCompartments(JSRuntime *rt)
 {
     return rt->compartments;
 }
 
-JS_FRIEND_API(size_t)
-SizeOfJSContext()
-{
-    return sizeof(JSContext);
-}
-
 JS_FRIEND_API(GCSliceCallback)
 SetGCSliceCallback(JSRuntime *rt, GCSliceCallback callback)
 {
     GCSliceCallback old = rt->gcSliceCallback;
     rt->gcSliceCallback = callback;
     return old;
 }
 
--- a/js/src/jsfriendapi.h
+++ b/js/src/jsfriendapi.h
@@ -669,19 +669,16 @@ CallContextDebugHandler(JSContext *cx, J
 extern JS_FRIEND_API(bool)
 IsContextRunningJS(JSContext *cx);
 
 class SystemAllocPolicy;
 typedef Vector<JSCompartment*, 0, SystemAllocPolicy> CompartmentVector;
 extern JS_FRIEND_API(const CompartmentVector&)
 GetRuntimeCompartments(JSRuntime *rt);
 
-extern JS_FRIEND_API(size_t)
-SizeOfJSContext();
-
 #define GCREASONS(D)                            \
     /* Reasons internal to the JS engine */     \
     D(API)                                      \
     D(MAYBEGC)                                  \
     D(LAST_CONTEXT)                             \
     D(DESTROY_CONTEXT)                          \
     D(LAST_DITCH)                               \
     D(TOO_MUCH_MALLOC)                          \