Bug 1303708 - Remove unused JSID_IS_ZERO(jsid id) function. draft
authorajay <ajay.krishn97@gmail.com>
Thu, 22 Sep 2016 04:27:52 +0530
changeset 416375 480ae6e50e7bff50b530d7199e0efb5efc22eb15
parent 416020 560b2c805bf7bebeb3ceebc495a81b2aa4c0c755
child 416630 e66d020e1bb741fa0f7ada6094bc94d2436f5bd6
child 417037 c2fdcf7b1a1677abec67c8be087203f7be5427fe
push id30121
push userbmo:ajay.krishn97@gmail.com
push dateWed, 21 Sep 2016 23:54:38 +0000
bugs1303708
milestone52.0a1
Bug 1303708 - Remove unused JSID_IS_ZERO(jsid id) function. MozReview-Commit-ID: 49WIEl6MCsF
js/public/Id.h
--- a/js/public/Id.h
+++ b/js/public/Id.h
@@ -64,22 +64,16 @@ JSID_TO_STRING(jsid id)
  *
  * N.B. if a jsid is backed by a string which has not been interned, that
  * string must be appropriately rooted to avoid being collected by the GC.
  */
 JS_PUBLIC_API(jsid)
 INTERNED_STRING_TO_JSID(JSContext* cx, JSString* str);
 
 static MOZ_ALWAYS_INLINE bool
-JSID_IS_ZERO(jsid id)
-{
-    return JSID_BITS(id) == 0;
-}
-
-static MOZ_ALWAYS_INLINE bool
 JSID_IS_INT(jsid id)
 {
     return !!(JSID_BITS(id) & JSID_TYPE_INT);
 }
 
 static MOZ_ALWAYS_INLINE int32_t
 JSID_TO_INT(jsid id)
 {