From 09d90de350a416330180069f0c02f31c514d9bb1 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Thu, 15 Mar 2007 00:56:52 +0000 Subject: [PATCH] Unused identifier cleanup. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15718 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/qoflog.c | 1 - src/backend/file/sixtp.c | 4 +--- src/engine/FreqSpec.c | 4 +--- src/engine/Recurrence.c | 1 - src/engine/test-core/test-engine-stuff.c | 2 -- 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/libqof/qof/qoflog.c b/lib/libqof/qof/qoflog.c index cbde439af5..f929c2a8de 100644 --- a/lib/libqof/qof/qoflog.c +++ b/lib/libqof/qof/qoflog.c @@ -97,7 +97,6 @@ log4glib_handler(const gchar *log_domain, return; { - gboolean last_char_is_newline; char timestamp_buf[10]; time_t now; struct tm now_tm; diff --git a/src/backend/file/sixtp.c b/src/backend/file/sixtp.c index 111011e302..487e50c90a 100644 --- a/src/backend/file/sixtp.c +++ b/src/backend/file/sixtp.c @@ -34,10 +34,8 @@ #include "sixtp-parsers.h" #include "sixtp-stack.h" -#define LOG_MOD "gnc.backend.file.sixtp" -static QofLogModule log_module = LOG_MOD; #undef G_LOG_DOMAIN -#define G_LOG_DOMAIN LOG_MOD +#define G_LOG_DOMAIN "gnc.backend.file.sixtp" /************************************************************************/ gboolean diff --git a/src/engine/FreqSpec.c b/src/engine/FreqSpec.c index ee895aedf7..aea2cd5a9a 100644 --- a/src/engine/FreqSpec.c +++ b/src/engine/FreqSpec.c @@ -87,10 +87,8 @@ #include "FreqSpecP.h" -#define LOG_MOD "gnc.engine.freqspec" -static QofLogModule log_module = LOG_MOD; #undef G_LOG_DOMAIN -#define G_LOG_DOMAIN LOG_MOD +#define G_LOG_DOMAIN "gnc.engine.freqspec" /* * FIXME: should be in a header file diff --git a/src/engine/Recurrence.c b/src/engine/Recurrence.c index 1019fe5b6b..1a0f56c973 100644 --- a/src/engine/Recurrence.c +++ b/src/engine/Recurrence.c @@ -525,7 +525,6 @@ recurrenceListToCompactString(GList *rs) { Recurrence *r = (Recurrence*)g_list_nth_data(rs, 0); guint multiplier = recurrenceGetMultiplier(r); - GDate date = recurrenceGetDate(r); switch (recurrenceGetPeriodType(r)) { diff --git a/src/engine/test-core/test-engine-stuff.c b/src/engine/test-core/test-engine-stuff.c index e6f47fae4f..e892e7319e 100644 --- a/src/engine/test-core/test-engine-stuff.c +++ b/src/engine/test-core/test-engine-stuff.c @@ -2142,7 +2142,6 @@ make_trans_query (Transaction *trans, TestQueryTypes query_types) static Recurrence* daily_freq(GDate* start, int multiplier) { - QofBook *book = qof_session_get_book(gnc_get_current_session()); Recurrence *r = g_new0(Recurrence, 1); recurrenceSet(r, multiplier, PERIOD_DAY, start); return r; @@ -2151,7 +2150,6 @@ daily_freq(GDate* start, int multiplier) static Recurrence* once_freq(GDate *when) { - QofBook *book = qof_session_get_book(gnc_get_current_session()); Recurrence *r = g_new0(Recurrence, 1); recurrenceSet(r, 1, PERIOD_ONCE, when); return r;