[gjs: 1/16] console: Remove unused code



commit 77e6b4853c9c464983b180d00875e3786618c346
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Sep 4 21:51:07 2018 -0400

    console: Remove unused code
    
    The result of this call to JS::ToString() is not used.

 modules/console.cpp | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/modules/console.cpp b/modules/console.cpp
index dcbe2089..07f136da 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -233,10 +233,6 @@ gjs_console_eval_and_print(JSContext  *cx,
     if (result.isUndefined())
         return true;
 
-    JS::RootedString str(cx, JS::ToString(cx, result));
-    if (!str)
-        return true;
-
     char *display_str;
     display_str = gjs_value_debug_string(cx, result);
     if (display_str) {


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