From 8f8a8a33b17771b6a9e673beb4600f1a65f943bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Fri, 6 Apr 2007 22:59:34 +0000 Subject: [PATCH] Remove unused function qof_is_same_day(). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15844 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/gnc-date.c | 15 --------------- lib/libqof/qof/gnc-date.h | 6 ------ 2 files changed, 21 deletions(-) diff --git a/lib/libqof/qof/gnc-date.c b/lib/libqof/qof/gnc-date.c index b15caeb5e4..9ead29f7aa 100644 --- a/lib/libqof/qof/gnc-date.c +++ b/lib/libqof/qof/gnc-date.c @@ -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 diff --git a/lib/libqof/qof/gnc-date.h b/lib/libqof/qof/gnc-date.h index d61ad776a4..69bb1304ed 100644 --- a/lib/libqof/qof/gnc-date.h +++ b/lib/libqof/qof/gnc-date.h @@ -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.