From ca5a975561d29ebd8f755b6fc3f0983ac4f6e5e9 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Mon, 4 Nov 2024 17:09:57 +0100 Subject: [PATCH] Drop unused method --- src/NCronJob/Registry/JobRegistry.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/NCronJob/Registry/JobRegistry.cs b/src/NCronJob/Registry/JobRegistry.cs index ac33461c..dc1fdc6e 100644 --- a/src/NCronJob/Registry/JobRegistry.cs +++ b/src/NCronJob/Registry/JobRegistry.cs @@ -16,8 +16,6 @@ private readonly Dictionary> depe public IReadOnlyCollection GetAllOneTimeJobs() => allJobs.Where(c => c.IsStartupJob).ToList(); - public JobDefinition GetJobDefinition() => allJobs.First(j => j.Type == typeof(T)); - public JobDefinition? FindJobDefinition(Type type) => allJobs.FirstOrDefault(j => j.Type == type);