From 9333174b58d2191e56d43028c3c022352e6862a6 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Wed, 14 Oct 2026 11:11:16 -0400 Subject: [PATCH] Remove unused elements from `ClearExpiredFoundationDbMessagesCommand` --- .../workers/ClearExpiredFoundationDbMessagesCommand.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/workers/ClearExpiredFoundationDbMessagesCommand.java b/service/src/main/java/org/whispersystems/textsecuregcm/workers/ClearExpiredFoundationDbMessagesCommand.java index 7a14ddbdf..c59a23083 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/workers/ClearExpiredFoundationDbMessagesCommand.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/workers/ClearExpiredFoundationDbMessagesCommand.java @@ -11,10 +11,7 @@ import java.time.Duration; import java.time.Instant; import java.util.stream.Collectors; import net.sourceforge.argparse4j.inf.Subparser; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.whispersystems.textsecuregcm.identity.AciServiceIdentifier; -import org.whispersystems.textsecuregcm.identity.IdentityType; import org.whispersystems.textsecuregcm.storage.Account; import org.whispersystems.textsecuregcm.storage.Device; import org.whispersystems.textsecuregcm.storage.MessagesManager; @@ -36,11 +33,6 @@ public class ClearExpiredFoundationDbMessagesCommand extends AbstractSinglePassC @VisibleForTesting static final String VERSIONSTAMP_TTL_DAYS_ARGUMENT = "versionstamp-ttl-days"; - @VisibleForTesting - static final Duration TIMESTAMP_RETENTION_PERIOD = Duration.ofDays(60); - - private static final Logger log = LoggerFactory.getLogger(ClearExpiredFoundationDbMessagesCommand.class); - public ClearExpiredFoundationDbMessagesCommand(final Clock clock) { super("clear-expired-foundationdb-messages", "Removes expired messages from FoundationDB");