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