Bug 749366, part 2 - remove unused SizeOfJSContext. r=njn
authorAndrew McCreight <amccreight@mozilla.com>
Mon, 27 Aug 2012 10:43:08 -0700
changeset 103582 65e30427c102bfd1c0e635eddb2083bdf0f4e26e
parent 103581 61efc4bbf95b58fffe94dd4d30e5407a5c75173f
child 103583 b4c8fe10f767af3ee5be13626f7b75ff5446af2e
push id14054
push useramccreight@mozilla.com
push dateMon, 27 Aug 2012 17:43:28 +0000
treeherdermozilla-inbound@65e30427c102 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs749366
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)                          \