libgnome r3697 - in trunk: . libgnome
- From: kmaraas svn gnome org
- To: svn-commits-list gnome org
- Subject: libgnome r3697 - in trunk: . libgnome
- Date: Mon, 10 Mar 2008 15:25:22 +0000 (GMT)
Author: kmaraas
Date: Mon Mar 10 15:25:22 2008
New Revision: 3697
URL: http://svn.gnome.org/viewvc/libgnome?rev=3697&view=rev
Log:
2008-03-10 Kjartan Maraas <kmaraas gnome org>
* libgnome/gnome-triggers.c: Remove unused
static functions: gnome_triggerlist_free() and
gnome_trigger_free()
Modified:
trunk/ChangeLog
trunk/libgnome/gnome-triggers.c
Modified: trunk/libgnome/gnome-triggers.c
==============================================================================
--- trunk/libgnome/gnome-triggers.c (original)
+++ trunk/libgnome/gnome-triggers.c Mon Mar 10 15:25:22 2008
@@ -55,8 +55,6 @@
/* PROTOTYPES */
static GnomeTrigger* gnome_trigger_dup(GnomeTrigger *dupme);
static GnomeTriggerList* gnome_triggerlist_new(char *nodename);
-static void gnome_triggerlist_free(GnomeTriggerList* t);
-static void gnome_trigger_free(GnomeTrigger* t);
static void gnome_trigger_do(GnomeTrigger* t, const char *msg, const char *level,
const char *supinfo[]);
static void gnome_trigger_do_function(GnomeTrigger* t,
@@ -501,41 +499,6 @@
}
static void
-gnome_trigger_free(GnomeTrigger* t)
-{
- g_free(t->level);
- switch(t->type) {
- case GTRIG_COMMAND:
- g_free(t->u.command); break;
- case GTRIG_MEDIAPLAY:
- g_free(t->u.media.file); break;
- default:
- break;
- }
- g_free(t);
-}
-
-static void
-gnome_triggerlist_free(GnomeTriggerList* t)
-{
- int i;
-
- g_free(t->nodename);
-
- for(i = 0; i < t->numsubtrees; i++) {
- gnome_triggerlist_free(t->subtrees[i]);
- }
- g_free(t->subtrees);
-
- for(i = 0; i < t->numactions; i++) {
- gnome_trigger_free(t->actions[i]);
- }
- g_free(t->actions);
-
- g_free(t);
-}
-
-static void
gnome_trigger_do(GnomeTrigger* t,
const char *msg,
const char * level,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]