r15844 - gnucash/trunk/lib/libqof/qof - Remove unused function qof_is_same_day().

Andreas Köhler andi5 at cvs.gnucash.org
Fri Apr 6 18:59:35 EDT 2007


Author: andi5
Date: 2007-04-06 18:59:34 -0400 (Fri, 06 Apr 2007)
New Revision: 15844
Trac: http://svn.gnucash.org/trac/changeset/15844

Modified:
   gnucash/trunk/lib/libqof/qof/gnc-date.c
   gnucash/trunk/lib/libqof/qof/gnc-date.h
Log:
Remove unused function qof_is_same_day().


Modified: gnucash/trunk/lib/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.c	2007-04-06 20:03:50 UTC (rev 15843)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.c	2007-04-06 22:59:34 UTC (rev 15844)
@@ -656,21 +656,6 @@
 
 /* ============================================================== */
 
-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

Modified: gnucash/trunk/lib/libqof/qof/gnc-date.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-04-06 20:03:50 UTC (rev 15843)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-04-06 22:59:34 UTC (rev 15844)
@@ -412,12 +412,6 @@
 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.



More information about the gnucash-changes mailing list