r15850 - gnucash/trunk/lib/libqof/qof - Remove unused code for gnc_timet_get_day_{start, end}_gdate from qof.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Apr 8 20:51:48 EDT 2007


Author: andi5
Date: 2007-04-08 20:51:45 -0400 (Sun, 08 Apr 2007)
New Revision: 15850
Trac: http://svn.gnucash.org/trac/changeset/15850

Modified:
   gnucash/trunk/lib/libqof/qof/gnc-date.c
   gnucash/trunk/lib/libqof/qof/gnc-date.h
Log:
Remove unused code for gnc_timet_get_day_{start,end}_gdate from qof.


Modified: gnucash/trunk/lib/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.c	2007-04-07 18:24:53 UTC (rev 15849)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.c	2007-04-09 00:51:45 UTC (rev 15850)
@@ -1358,40 +1358,6 @@
 }
 
 
-#ifndef GNUCASH_MAJOR_VERSION
-time_t
-gnc_timet_get_day_start_gdate (GDate *date)
-{
-  struct tm stm;
-  time_t secs;
-
-  stm.tm_year = g_date_get_year (date) - 1900;
-  stm.tm_mon = g_date_get_month (date) - 1;
-  stm.tm_mday = g_date_get_day (date);
-  gnc_tm_set_day_start(&stm);
-
-  /* Compute number of seconds */
-  secs = mktime (&stm);
-  return secs;
-}
-
-time_t
-gnc_timet_get_day_end_gdate (GDate *date)
-{
-  struct tm stm;
-  time_t secs;
-
-  stm.tm_year = g_date_get_year (date) - 1900;
-  stm.tm_mon = g_date_get_month (date) - 1;
-  stm.tm_mday = g_date_get_day (date);
-  gnc_tm_set_day_end(&stm);
-
-  /* Compute number of seconds */
-  secs = mktime (&stm);
-  return secs;
-}
-#endif /* GNUCASH_MAJOR_VERSION */
-
 /* ======================================================== */
 
 void

Modified: gnucash/trunk/lib/libqof/qof/gnc-date.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-04-07 18:24:53 UTC (rev 15849)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-04-09 00:51:45 UTC (rev 15850)
@@ -496,22 +496,6 @@
  *  seconds and adjust it to the last second of that day. */
 time_t gnc_timet_get_day_end(time_t time_val);
 
-#ifndef GNUCASH_MAJOR_VERSION
-/** The gnc_timet_get_day_start() routine will take the given time in
- *  GLib GDate format and adjust it to the last second of that day.
- *
- *  @deprecated
- */
-time_t gnc_timet_get_day_start_gdate (GDate *date);
-
-/** The gnc_timet_get_day_end() routine will take the given time in
- *  GLib GDate format and adjust it to the last second of that day.
- *
- *  @deprecated
- */
-time_t gnc_timet_get_day_end_gdate (GDate *date);
-#endif /* GNUCASH_MAJOR_VERSION */
-
 /** Get the numerical last date of the month. (28, 29, 30, 31) */
 int date_get_last_mday(struct tm *tm);
 



More information about the gnucash-changes mailing list