Bug 952650 (part 15) - Remove JSVAL_TO_GCTHING. r=till.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 28 Apr 2014 16:01:30 -0700
changeset 181305 a97a14bb56df42807f0bbb13a379ba75601fc874
parent 181304 eadb3ac8bc7f7115b8151f8c88818ea350568c20
child 181306 697506d9c32459abcbf817fbf54fb793078d49d3
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerstill
bugs952650
milestone32.0a1
Bug 952650 (part 15) - Remove JSVAL_TO_GCTHING. r=till.
js/public/Value.h
--- a/js/public/Value.h
+++ b/js/public/Value.h
@@ -1869,23 +1869,16 @@ OBJECT_TO_JSVAL(JSObject *obj)
 }
 
 static inline jsval
 BOOLEAN_TO_JSVAL(bool b)
 {
     return IMPL_TO_JSVAL(BOOLEAN_TO_JSVAL_IMPL(b));
 }
 
-static inline void *
-JSVAL_TO_GCTHING(jsval v)
-{
-    MOZ_ASSERT(JSVAL_IS_GCTHING(v));
-    return JSVAL_TO_GCTHING_IMPL(JSVAL_TO_IMPL(v));
-}
-
 /* To be GC-safe, privates are tagged as doubles. */
 
 static inline jsval
 PRIVATE_TO_JSVAL(void *ptr)
 {
     return IMPL_TO_JSVAL(PRIVATE_PTR_TO_JSVAL_IMPL(ptr));
 }