From f7a5029ad6caac05d3298777d4c2b2c6a68d0d31 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 16 Nov 2014 15:56:44 +0100 Subject: [PATCH] WeatherInformation: WidgetIntentService remove unused method --- .../information/widget/service/WidgetIntentService.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Android/WeatherInformation/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java b/Android/WeatherInformation/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java index 61dbb9c..7de46e0 100644 --- a/Android/WeatherInformation/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java +++ b/Android/WeatherInformation/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java @@ -318,19 +318,6 @@ public class WidgetIntentService extends IntentService { final AppWidgetManager manager = AppWidgetManager.getInstance(this.getApplicationContext()); manager.updateAppWidget(appWidgetId, remoteView); } - - private boolean isDataFresh(final Date lastUpdate) { - if (lastUpdate == null) { - return false; - } - - final Date currentTime = new Date(); - if (((currentTime.getTime() - lastUpdate.getTime())) < UPDATE_TIME_RATE) { - return true; - } - - return false; - } // private void updateWidgets(final RemoteViews remoteView) { // -- 2.1.4