[Xfce4-commits] <squeeze:peter/refactoring> Removed invalid line from datetime compare

Peter de Ridder noreply at xfce.org
Sun Feb 3 21:44:01 CET 2013


Updating branch refs/heads/peter/refactoring
         to ee647328220cce8413c2fbabb383ce375d62c6a3 (commit)
       from 9c4208f15d0c29eb313810b65d4ae37582148b53 (commit)

commit ee647328220cce8413c2fbabb383ce375d62c6a3
Author: Peter de Ridder <peter at xfce.org>
Date:   Sun Feb 26 12:27:38 2012 +0100

    Removed invalid line from datetime compare

 libsqueeze/datetime.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/libsqueeze/datetime.c b/libsqueeze/datetime.c
index 1402034..644b899 100644
--- a/libsqueeze/datetime.c
+++ b/libsqueeze/datetime.c
@@ -267,10 +267,7 @@ lsq_datetime_cmp (
 
     /* Ignoring daylight saveing */
     cmp = LSQ_DATETIME_CMP_MASK( a ) - LSQ_DATETIME_CMP_MASK( b );
-    if ( 0 != cmp )
-        return cmp;
-
-    return difftime( mktime( (struct tm *)a ), mktime( (struct tm *)b ) );
+    return cmp;
 }
 
 LSQDateTime


More information about the Xfce4-commits mailing list