[glib] g_date_time_format: drop an unused variable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] g_date_time_format: drop an unused variable
- Date: Tue, 8 Feb 2011 12:41:58 +0000 (UTC)
commit 8d572f5d22c07580936067e91e669220cfc801cc
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 8 07:35:54 2011 -0500
g_date_time_format: drop an unused variable
glib/gdatetime.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index 44e4c52..0c47006 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -2237,7 +2237,6 @@ g_date_time_format (GDateTime *datetime,
GString *outstr;
gchar *tmp;
gunichar c;
- glong utf8len;
gboolean in_mod;
g_return_val_if_fail (datetime != NULL, NULL);
@@ -2245,10 +2244,9 @@ g_date_time_format (GDateTime *datetime,
g_return_val_if_fail (g_utf8_validate (format, -1, NULL), NULL);
outstr = g_string_sized_new (strlen (format) * 2);
- utf8len = g_utf8_strlen (format, -1);
in_mod = FALSE;
- for (; *format; format = g_utf8_next_char(format))
+ for (; *format; format = g_utf8_next_char (format))
{
c = g_utf8_get_char (format);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]