From: Gustavo Martin Morcuende Date: Sun, 16 Nov 2014 14:56:44 +0000 (+0100) Subject: WeatherInformation: WidgetIntentService remove unused method X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=f7a5029ad6caac05d3298777d4c2b2c6a68d0d31;p=JavaForFun WeatherInformation: WidgetIntentService remove unused method --- 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) { //