Remove unused function qof_is_same_day().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15844 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-04-06 22:59:34 +00:00
parent df48c26f49
commit 8f8a8a33b1
2 changed files with 0 additions and 21 deletions

View File

@ -656,21 +656,6 @@ qof_print_time_buff (char * buff, size_t len, time_t secs)
/* ============================================================== */
int
qof_is_same_day (time_t ta, time_t tb)
{
struct tm lta, ltb;
lta = *localtime (&ta);
ltb = *localtime (&tb);
if (lta.tm_year == ltb.tm_year)
{
return (ltb.tm_yday - lta.tm_yday);
}
return (ltb.tm_year - lta.tm_year)*365; /* very approximate */
}
/* ============================================================== */
/* Convert a string into day, month and year integers
Convert a string into day / month / year integers according to

View File

@ -412,12 +412,6 @@ size_t qof_print_minutes_elapsed_buff (char * buff, size_t len, int secs, gboole
size_t qof_print_time_buff (char * buff, size_t len, time_t secs);
size_t qof_print_date_time_buff (char * buff, size_t len, time_t secs);
/** The qof_is_same_day() routine returns 0 if both times are in the
* same day.
*/
gboolean qof_is_same_day (time_t, time_t);
/* ------------------------------------------------------------------ */
/** The xaccDateUtilGetStamp() routine will take the given time in
* seconds and return a buffer containing a textual for the date.