From 280c53fa5b96c1152da186eadc5bd6211aceb4c9 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 20 Dec 2023 10:39:31 +0000 Subject: [PATCH] (scheduler) Remove unused trait --- pageserver/src/tenant/secondary/scheduler.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pageserver/src/tenant/secondary/scheduler.rs b/pageserver/src/tenant/secondary/scheduler.rs index fa6cd12d66..0cec0e0ede 100644 --- a/pageserver/src/tenant/secondary/scheduler.rs +++ b/pageserver/src/tenant/secondary/scheduler.rs @@ -96,21 +96,6 @@ pub(super) trait TenantScoped { fn get_tenant_shard_id(&self) -> &TenantShardId; } -pub(super) trait ScheduledJob { - /// Indicative intended time of execution: jobs are executed _after_ this time, - /// but how much after is an indicator of whether we're keeping up with schedudling - /// goals. - fn get_target_time(&self) -> Option { - None - } - - /// If the job runs on a periodic basis, expose the period here. This is used - /// together with the target time to determine whether the job is considered late. - fn get_period(&self) -> Option { - None - } -} - /// For types that contain a Barrier that may be waited on pub(super) trait HasBarrier { fn get_barrier(&self) -> Barrier;