r22607 - gnucash/trunk/src/libqof/qof - Remove gnc_dmy2gdate, which isn't used.
John Ralls
jralls at code.gnucash.org
Sat Dec 1 17:42:38 EST 2012
Author: jralls
Date: 2012-12-01 17:42:37 -0500 (Sat, 01 Dec 2012)
New Revision: 22607
Trac: http://svn.gnucash.org/trac/changeset/22607
Modified:
gnucash/trunk/src/libqof/qof/gnc-date.c
gnucash/trunk/src/libqof/qof/gnc-date.h
gnucash/trunk/src/libqof/qof/test/test-gnc-date.c
Log:
Remove gnc_dmy2gdate, which isn't used.
Modified: gnucash/trunk/src/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.c 2012-12-01 22:42:28 UTC (rev 22606)
+++ gnucash/trunk/src/libqof/qof/gnc-date.c 2012-12-01 22:42:37 UTC (rev 22607)
@@ -1523,16 +1523,6 @@
return gnc_dmy2timespec_internal (day, month, year, TRUE);
}
-GDate gnc_dmy2gdate (gint day, gint month, gint year)
-{
- GDate result;
- g_date_clear(&result, 1);
- g_date_set_day (&result, day);
- g_date_set_month (&result, month);
- g_date_set_year (&result, year);
- return result;
-}
-
Timespec
gnc_dmy2timespec_end (int day, int month, int year)
{
Modified: gnucash/trunk/src/libqof/qof/gnc-date.h
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.h 2012-12-01 22:42:28 UTC (rev 22606)
+++ gnucash/trunk/src/libqof/qof/gnc-date.h 2012-12-01 22:42:37 UTC (rev 22607)
@@ -311,9 +311,6 @@
/** Turns a GDate into a Timespec, returning the first second of the day */
Timespec gdate_to_timespec (GDate d);
-/** Convert a day, month, and year to a GDate. Similar to g_date_new_dmy() but
- * returns by-value and not by pointer. */
-GDate gnc_dmy2gdate (gint day, gint month, gint year);
/** Convert a day, month, and year to a Timespec, returning the first second of the day */
Timespec gnc_dmy2timespec (gint day, gint month, gint year);
Modified: gnucash/trunk/src/libqof/qof/test/test-gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/test/test-gnc-date.c 2012-12-01 22:42:28 UTC (rev 22606)
+++ gnucash/trunk/src/libqof/qof/test/test-gnc-date.c 2012-12-01 22:42:37 UTC (rev 22607)
@@ -1898,10 +1898,6 @@
g_date_time_unref (gdt3);
g_date_time_unref (gdt4);
}
-// Not Used
-/* gnc_dmy2gdate
-GDate gnc_dmy2gdate (gint day, gint month, gint year)// Local: 0:0:0
-*/
/* gnc_dmy2timespec_end
Timespec
gnc_dmy2timespec_end (int day, int month, int year)// C: 1 Local: 0:0:0
More information about the gnucash-changes
mailing list