Skip to content

Commit

Permalink
Drop unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Nov 4, 2024
1 parent 22e8fc6 commit ca5a975
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/NCronJob/Registry/JobRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ private readonly Dictionary<JobDefinition, List<DependentJobRegistryEntry>> depe

public IReadOnlyCollection<JobDefinition> GetAllOneTimeJobs() => allJobs.Where(c => c.IsStartupJob).ToList();

public JobDefinition GetJobDefinition<T>() => allJobs.First(j => j.Type == typeof(T));

public JobDefinition? FindJobDefinition(Type type)
=> allJobs.FirstOrDefault(j => j.Type == type);

Expand Down

0 comments on commit ca5a975

Please sign in to comment.