[gjs: 2/10] jsapi-util: Remove unused code



commit 80a28428e6ec5a6c66d3c269d72056fc08293a20
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Nov 8 20:12:04 2018 -0500

    jsapi-util: Remove unused code

 gjs/jsapi-util.cpp |  6 ------
 gjs/jsapi-util.h   | 12 ------------
 2 files changed, 18 deletions(-)
---
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index 817352be..11affcb4 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -42,12 +42,6 @@
 #include "util/log.h"
 #include "util/misc.h"
 
-GQuark
-gjs_util_error_quark (void)
-{
-    return g_quark_from_static_string ("gjs-util-error-quark");
-}
-
 static void
 throw_property_lookup_error(JSContext       *cx,
                             JS::HandleObject obj,
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 40d93309..664ded20 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -172,18 +172,6 @@ struct GCPolicy<GjsAutoParam> : public IgnoreGCPolicy<GjsAutoParam> {};
 
 G_BEGIN_DECLS
 
-#define GJS_UTIL_ERROR gjs_util_error_quark ()
-GQuark gjs_util_error_quark (void);
-enum {
-  GJS_UTIL_ERROR_NONE,
-  GJS_UTIL_ERROR_ARGUMENT_INVALID,
-  GJS_UTIL_ERROR_ARGUMENT_UNDERFLOW,
-  GJS_UTIL_ERROR_ARGUMENT_OVERFLOW,
-  GJS_UTIL_ERROR_ARGUMENT_TYPE_MISMATCH
-};
-
-typedef struct GjsRootedArray GjsRootedArray;
-
 /* Flags that should be set on properties exported from native code modules.
  * Basically set these on API, but do NOT set them on data.
  *


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