Skip to content

Commit dbf188b

Browse files
committed
refactor(Timer): 移除已废弃的UnSchedule方法
已使用新的Remove方法替代,清理过时代码以保持代码整洁
1 parent 3e28029 commit dbf188b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

GameFrameX.Core/Timer/QuartzTimer.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,6 @@ public static class QuartzTimer
5252
/// </summary>
5353
private static readonly StatisticsTool StatisticsTool = new();
5454

55-
/// <summary>
56-
/// 取消订阅定时任务
57-
/// </summary>
58-
/// <param name="id">要取消的定时任务ID</param>
59-
[Obsolete("请使用Remove(long id)")]
60-
public static void UnSchedule(long id)
61-
{
62-
if (id <= 0)
63-
{
64-
return;
65-
}
66-
67-
_scheduler.DeleteJob(JobKey.Create(id.ToString()));
68-
}
69-
70-
/// <summary>
71-
/// 批量取消订阅定时任务
72-
/// </summary>
73-
/// <param name="set">要取消的定时任务ID集合</param>
74-
[Obsolete("请使用Remove(IEnumerable<long> set)")]
75-
public static void UnSchedule(IEnumerable<long> set)
76-
{
77-
foreach (var id in set)
78-
{
79-
UnSchedule(id);
80-
}
81-
}
82-
8355
/// <summary>
8456
/// 删除指定的定时任务
8557
/// </summary>

0 commit comments

Comments
 (0)