[Xfce4-commits] <xfce4-weather-plugin:master> Revert "Check for exact match in find_timeslice."

Harald Judt noreply at xfce.org
Fri Jul 6 09:08:01 CEST 2012


Updating branch refs/heads/master
         to cc67b84f3104e88deb3c26263c0ccc7e5c529685 (commit)
       from 169baabb0b9ffa914000eaaeee76052f6e54d14c (commit)

commit cc67b84f3104e88deb3c26263c0ccc7e5c529685
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Jul 6 09:01:04 2012 +0200

    Revert "Check for exact match in find_timeslice."
    
    This reverts commit 343889631bfe521de7f36a3edca3581ef6745985.
    
    I got confused by my own ideas ;-) We already check for
    exact matches with hours=0, so no need to introduce an extra
    check.

 panel-plugin/weather-data.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index 223d22a..9a9a5eb 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -259,10 +259,6 @@ find_timeslice(xml_weather *data, struct tm tm_start, struct tm tm_end)
     while (interval <= interval_limit) {
         hours = 0;
         while (hours <= hours_limit) {
-            /* try to find exact match */
-            if (has_timeslice(data, start_t, end_t))
-                return get_timeslice(data, start_t, end_t);
-
             /* check with previous hours */
             start_t = time_calc_hour(tm_start, 0 - hours);
             end_t = time_calc_hour(tm_end, 0 - hours - interval);


More information about the Xfce4-commits mailing list