Skip to content

Commit

Permalink
Remove unused Evaluator constructors .
Browse files Browse the repository at this point in the history
  • Loading branch information
minichma committed Nov 29, 2024
1 parent 7ca41f6 commit a91a9f1
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Ical.Net/Evaluation/Evaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a91a9f1

Please sign in to comment.