From 793d00f975eeb7360aa19af84f29fa36e3b2c14d Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 23 Nov 2012 23:02:03 -0500 Subject: [PATCH] Remove obsolete time update checking code. This was put into OpenDeskbar a long long time ago (2001): http://opentracker.cvs.sourceforge.net/viewvc/opentracker/opentracker/deskbar/TimeView.cpp?r1=1.2&r2=1.3 However, this trick will no longer work because we use a localized time string from the Locale Kit that might not have a ':' as a time separator anymore. Also with day of week we don't know the position of the time separator either. --- src/apps/deskbar/TimeView.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/apps/deskbar/TimeView.cpp b/src/apps/deskbar/TimeView.cpp index a3102db955..b0f86be74b 100644 --- a/src/apps/deskbar/TimeView.cpp +++ b/src/apps/deskbar/TimeView.cpp @@ -252,12 +252,7 @@ TTimeView::Pulse() GetCurrentDate(); if (strcmp(fCurrentTimeStr, fLastTimeStr) != 0) { // Update bounds when the size of the strings has changed - // For dates, Update() could be called two times in a row, - // but that should only happen very rarely - if ((fLastTimeStr[1] != fCurrentTimeStr[1] - && (fLastTimeStr[1] == ':' || fCurrentTimeStr[1] == ':')) - || !fLastTimeStr[0]) - Update(); + Update(); strlcpy(fLastTimeStr, fCurrentTimeStr, sizeof(fLastTimeStr)); fNeedToUpdate = true;