[glib] Revert "g_date_time_format: support %D"



commit a636dfd7fbe5757384773460dc01e2727d7ede75
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Sep 3 19:44:13 2011 -0400

    Revert "g_date_time_format: support %D"
    
    This reverts commit 46ce7907720074089040275280bb20208bafeb6a.
    
    git-bz mishap (I think?)

 glib/gdatetime.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index a89cf39..8eea23b 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -2171,10 +2171,6 @@ get_numeric_format (gchar    *fmt,
  *   </term><listitem><simpara>
  *    the day of the month as a decimal number (range 01 to 31)
  *  </simpara></listitem></varlistentry>
- *    <literal>%%D</literal>:
- *   </term><listitem><simpara>
- *    equivalent to <literal>%%m/%%d/%%y</literal>
- *  </simpara></listitem></varlistentry>
  *  <varlistentry><term>
  *    <literal>%%e</literal>:
  *   </term><listitem><simpara>
@@ -2454,12 +2450,6 @@ g_date_time_format (GDateTime   *datetime,
                   get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : '0', 2);
                   g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime));
                   break;
-                case 'D':
-                  g_string_append_printf (outstr, "%02d/%02d/%02d",
-                                          g_date_time_get_month (datetime),
-                                          g_date_time_get_day_of_month (datetime),
-                                          g_date_time_get_year (datetime));
-                  break;
                 case 'e':
                   get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : ' ', 2);
                   g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]