[gjs: 5/10] arg: Remove dead code




commit 4bcd3ff0e2ed4c34c86d24904a623283844435c4
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon Jan 31 18:08:47 2022 -0800

    arg: Remove dead code
    
    These variables only get discarded. This code seems to have been moved
    into gjs_object_to_g_hash().

 gi/arg.cpp | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index df1dc52d5..f2aa97d38 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -1692,14 +1692,6 @@ bool gjs_value_to_g_argument(JSContext* context, JS::HandleValue value,
             return false;
         } else {
             GHashTable *ghash;
-            GjsAutoTypeInfo key_param_info =
-                g_type_info_get_param_type(type_info, 0);
-            GjsAutoTypeInfo val_param_info =
-                g_type_info_get_param_type(type_info, 1);
-
-            g_assert(key_param_info != nullptr);
-            g_assert(val_param_info != nullptr);
-
             JS::RootedObject props(context, &value.toObject());
             if (!gjs_object_to_g_hash(context, props, type_info, transfer,
                                       &ghash)) {


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