Skip to content

Commit

Permalink
Cleanup: Fix an unused function warning in cinnamon-global.c
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephMcc committed Jul 12, 2015
1 parent bd398a8 commit 924b0ac
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/cinnamon-global.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
static CinnamonGlobal *the_object = NULL;

static void grab_notify (GtkWidget *widget, gboolean is_grab, gpointer user_data);
static void cinnamon_global_on_gc (GjsContext *context,
CinnamonGlobal *global);

struct _CinnamonGlobal {
GObject parent;
Expand Down Expand Up @@ -269,7 +267,6 @@ cinnamon_global_init (CinnamonGlobal *global)
global->js_context = g_object_new (GJS_TYPE_CONTEXT,
"search-path", search_path,
NULL);
// g_signal_connect (global->js_context, "gc", G_CALLBACK (cinnamon_global_on_gc), global);

g_strfreev (search_path);
}
Expand Down Expand Up @@ -1339,13 +1336,6 @@ cinnamon_global_shutdown (void)
cinnamon_global_get_current_time (the_object));
}

static void
cinnamon_global_on_gc (GjsContext *context,
CinnamonGlobal *global)
{
global->last_gc_end_time = g_get_monotonic_time ();
}

/**
* cinnamon_global_notify_error:
* @global: a #CinnamonGlobal
Expand Down

0 comments on commit 924b0ac

Please sign in to comment.