From 4ee67064bb797b08ebdd5fc59dce7bf171247b09 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Tue, 30 Jul 2024 10:29:33 -0400 Subject: [PATCH] Remove a pair of unused methods --- .../textsecuregcm/auth/StoredRegistrationLock.java | 5 ----- .../org/whispersystems/textsecuregcm/storage/Account.java | 4 ---- 2 files changed, 9 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/auth/StoredRegistrationLock.java b/service/src/main/java/org/whispersystems/textsecuregcm/auth/StoredRegistrationLock.java index 905f141d9..84cd1b96a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/auth/StoredRegistrationLock.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/auth/StoredRegistrationLock.java @@ -80,9 +80,4 @@ public class StoredRegistrationLock { return false; } } - - @VisibleForTesting - public StoredRegistrationLock forTime(long timestamp) { - return new StoredRegistrationLock(registrationLock, registrationLockSalt, Instant.ofEpochMilli(timestamp)); - } } diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java index 959211179..5cab03248 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java @@ -558,10 +558,6 @@ public class Account { this.usernameHolds = usernameHolds; } - boolean isStale() { - return stale; - } - public void markStale() { stale = true; }