mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
df48c26f49
commit
8f8a8a33b1
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user