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; }