From b33e7040ff052db025f02aee036fa64c7b0094f2 Mon Sep 17 00:00:00 2001 From: Markus Minichmayr Date: Thu, 28 Nov 2024 16:34:33 +0100 Subject: [PATCH] Remove unused `Evaluator` constructors . --- Ical.Net/Evaluation/Evaluator.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Ical.Net/Evaluation/Evaluator.cs b/Ical.Net/Evaluation/Evaluator.cs index e1c5d956..a1a63e16 100644 --- a/Ical.Net/Evaluation/Evaluator.cs +++ b/Ical.Net/Evaluation/Evaluator.cs @@ -14,27 +14,12 @@ namespace Ical.Net.Evaluation; public abstract class Evaluator : IEvaluator { private ICalendarObject _mAssociatedObject; - private readonly ICalendarDataType _mAssociatedDataType; protected Evaluator() { Initialize(); } - protected Evaluator(ICalendarObject associatedObject) - { - _mAssociatedObject = associatedObject; - - Initialize(); - } - - protected Evaluator(ICalendarDataType dataType) - { - _mAssociatedDataType = dataType; - - Initialize(); - } - private void Initialize() { Calendar = CultureInfo.CurrentCulture.Calendar; @@ -89,7 +74,7 @@ protected void IncrementDate(ref DateTime dt, RecurrencePattern pattern, int int public virtual ICalendarObject AssociatedObject { - get => _mAssociatedObject ?? _mAssociatedDataType?.AssociatedObject; + get => _mAssociatedObject; protected set => _mAssociatedObject = value; }