From 0e4d265bb088dcec4c0e826c2f883c990369da48 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/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java b/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java index 61dbb9c..7de46e0 100644 --- a/app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java +++ b/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