[gjs/gnome-3-12: 3/6] util: remove unused and semi-bogus API
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-3-12: 3/6] util: remove unused and semi-bogus API
- Date: Mon, 14 Apr 2014 21:13:00 +0000 (UTC)
commit 905894fa9240c3fe82a09879f30b67cb2a9b9094
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Feb 23 23:15:02 2014 +0100
util: remove unused and semi-bogus API
Was removed in the last commit.
https://bugzilla.gnome.org/show_bug.cgi?id=725024
gjs/jsapi-util.cpp | 30 ------------------------------
gjs/jsapi-util.h | 5 -----
2 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index c588cf9..942cd10 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -1217,36 +1217,6 @@ gjs_maybe_gc (JSContext *context)
#endif
}
-void
-gjs_enter_gc(void)
-{
- g_mutex_lock(&gc_lock);
-}
-
-void
-gjs_leave_gc(void)
-{
- g_mutex_unlock(&gc_lock);
-}
-
-gboolean
-gjs_try_block_gc(void)
-{
- return g_mutex_trylock(&gc_lock);
-}
-
-void
-gjs_block_gc(void)
-{
- g_mutex_lock(&gc_lock);
-}
-
-void
-gjs_unblock_gc(void)
-{
- g_mutex_unlock(&gc_lock);
-}
-
/**
* gjs_strip_unix_shebang:
*
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index f4e8b8c..5494b8d 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -388,11 +388,6 @@ void gjs_unroot_value_locations (JSContext *context,
/* Functions intended for more "internal" use */
void gjs_maybe_gc (JSContext *context);
-void gjs_enter_gc (void);
-void gjs_leave_gc (void);
-gboolean gjs_try_block_gc (void);
-void gjs_block_gc (void);
-void gjs_unblock_gc (void);
JSBool gjs_context_get_frame_info (JSContext *context,
jsval *stack,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]