WeatherInformation: WidgetIntentService remove unused method
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 16 Nov 2014 14:56:44 +0000 (15:56 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 16 Nov 2014 14:56:44 +0000 (15:56 +0100)
app/src/main/java/name/gumartinm/weather/information/widget/service/WidgetIntentService.java

index 61dbb9c..7de46e0 100644 (file)
@@ -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) {
 //