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 28, 2024
1 parent a025e65 commit b33e704
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;

Check warning on line 77 in Ical.Net/Evaluation/Evaluator.cs

View check run for this annotation

Codecov / codecov/patch

Ical.Net/Evaluation/Evaluator.cs#L77

Added line #L77 was not covered by tests
protected set => _mAssociatedObject = value;
}

Expand Down

0 comments on commit b33e704

Please sign in to comment.