shell-global: remove unused shell_global_maybe_gc()
It's not used anywhere, and we're removing the manual garbage collection invocations anyway. https://bugzilla.gnome.org/show_bug.cgi?id=679832
This commit is contained in:
parent
de65739c01
commit
e82fe14f00
@ -1206,20 +1206,6 @@ shell_global_gc (ShellGlobal *global)
|
|||||||
JS_GC (context);
|
JS_GC (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* shell_global_maybe_gc:
|
|
||||||
* @global: A #ShellGlobal
|
|
||||||
*
|
|
||||||
* Start a garbage collection process when it would free up enough memory
|
|
||||||
* to be worth the amount of time it would take
|
|
||||||
* https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
shell_global_maybe_gc (ShellGlobal *global)
|
|
||||||
{
|
|
||||||
gjs_context_maybe_gc (global->js_context);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
shell_global_on_gc (GjsContext *context,
|
shell_global_on_gc (GjsContext *context,
|
||||||
ShellGlobal *global)
|
ShellGlobal *global)
|
||||||
|
@ -87,7 +87,6 @@ void shell_global_get_pointer (ShellGlobal *global,
|
|||||||
|
|
||||||
/* JavaScript utilities */
|
/* JavaScript utilities */
|
||||||
void shell_global_gc (ShellGlobal *global);
|
void shell_global_gc (ShellGlobal *global);
|
||||||
void shell_global_maybe_gc (ShellGlobal *global);
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
guint glibc_uordblks;
|
guint glibc_uordblks;
|
||||||
|
Loading…
Reference in New Issue
Block a user