diff --git a/src/main/java/io/split/android/client/service/splits/SplitsSyncHelper.java b/src/main/java/io/split/android/client/service/splits/SplitsSyncHelper.java index 7396323f3..50ecf6d94 100644 --- a/src/main/java/io/split/android/client/service/splits/SplitsSyncHelper.java +++ b/src/main/java/io/split/android/client/service/splits/SplitsSyncHelper.java @@ -185,10 +185,6 @@ private void updateStorage(boolean clearBeforeUpdate, SplitChange splitChange) { mSplitsStorage.update(mSplitChangeProcessor.process(splitChange)); } - public boolean cacheHasExpired() { - return false; - } - private long now() { return TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()); } diff --git a/src/test/java/io/split/android/client/service/SplitSyncTaskTest.java b/src/test/java/io/split/android/client/service/SplitSyncTaskTest.java index 0278ffb0f..9bbe08901 100644 --- a/src/test/java/io/split/android/client/service/SplitSyncTaskTest.java +++ b/src/test/java/io/split/android/client/service/SplitSyncTaskTest.java @@ -91,7 +91,6 @@ public void cleanSplitsWhenQueryStringHasChanged() throws HttpFetcherException { when(mSplitsStorage.getTill()).thenReturn(100L); when(mSplitsStorage.getUpdateTimestamp()).thenReturn(1111L); when(mSplitsStorage.getSplitsFilterQueryString()).thenReturn(mQueryString); - when(mSplitsSyncHelper.cacheHasExpired()).thenReturn(false); mTask.execute(); @@ -109,7 +108,6 @@ public void noClearSplitsWhenQueryStringHasNotChanged() throws HttpFetcherExcept when(mSplitsStorage.getTill()).thenReturn(100L); when(mSplitsStorage.getUpdateTimestamp()).thenReturn(1111L); when(mSplitsStorage.getSplitsFilterQueryString()).thenReturn(mQueryString); - when(mSplitsSyncHelper.cacheHasExpired()).thenReturn(false); mTask.execute();