[gjs] context: Remove unnecessary code from gjs_context_eval



commit c1c29765ef7fad6e2f3b9a2f1a04126274ed4c95
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 15 19:18:10 2014 -0500

    context: Remove unnecessary code from gjs_context_eval
    
    This was pointed out in the review, but wasn't removed before pushing...

 gjs/context.cpp |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 66ee584..a8907f0 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -606,17 +606,6 @@ gjs_context_eval(GjsContext   *js_context,
         goto out;
     }
 
-    gjs_debug(GJS_DEBUG_CONTEXT,
-              "Script evaluation succeeded");
-
-    if (gjs_log_exception(js_context->context)) {
-        g_set_error(error,
-                    GJS_ERROR,
-                    GJS_ERROR_FAILED,
-                    "Exception was set even though JS_EvaluateScript() returned true - did you gjs_throw() 
but not return false somewhere perhaps?");
-        goto out;
-    }
-
     if (exit_status_p) {
         if (JSVAL_IS_INT(retval)) {
             int code;


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