[gjs] arg: Remove JS_VERSION check



commit 050941522ce7e870d2d68137f38c7449b1587f4f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 8 13:48:58 2012 -0500

    arg: Remove JS_VERSION check
    
    Now that we depend on js185, we don't need this.

 gi/arg.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index dd1259f..f6ef1ed 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -398,13 +398,8 @@ gjs_object_to_g_hash(JSContext   *context,
                                      &key_arg))
             goto free_hash_and_fail;
 
-#if (JS_VERSION > 180)
         if (!JS_GetPropertyById(context, props, prop_id, &val_js))
             goto free_hash_and_fail;
-#else
-        if (!JS_GetProperty(context, props, key_arg.v_pointer, &val_js))
-            goto free_hash_and_fail;
-#endif
 
         /* Type check and convert value to a c type */
         if (!gjs_value_to_g_argument(context, val_js, val_param_info, NULL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]