From f645892fabc919d4198346f0e9dd18b8162293ba Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Thu, 5 Dec 2024 15:06:39 -0300 Subject: [PATCH] Remove unused method --- .../split/android/client/service/splits/SplitsSyncHelper.java | 4 ---- .../io/split/android/client/service/SplitSyncTaskTest.java | 2 -- 2 files changed, 6 deletions(-) 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();