Remove unused code for gnc_timet_get_day_{start,end}_gdate from qof.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15850 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-04-09 00:51:45 +00:00
parent a2269e623e
commit ec22b196e5
2 changed files with 0 additions and 50 deletions

View File

@ -1358,40 +1358,6 @@ gnc_timet_get_day_end (time_t time_val)
}
#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

View File

@ -496,22 +496,6 @@ time_t gnc_timet_get_day_start(time_t time_val);
* 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);