Skip to content

Commit

Permalink
Fix: Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Oct 13, 2024
1 parent f5cdd09 commit 5067c3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Ical.Net.Benchmarks/OccurencePerfTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void MultipleEventsWithUntilOccurrencesSearchingByWholeCalendar()
var calendar = GetFourCalendarEventsWithUntilRule();
var searchStart = calendar.Events.First().DtStart.AddYears(-1);
var searchEnd = calendar.Events.Last().DtStart.AddYears(1);
var occurences = calendar.GetOccurrences(searchStart, searchEnd);
_ = calendar.GetOccurrences(searchStart, searchEnd);
}

[Benchmark]
Expand All @@ -24,7 +24,7 @@ public void MultipleEventsWithUntilOccurrences()
var calendar = GetFourCalendarEventsWithUntilRule();
var searchStart = calendar.Events.First().DtStart.AddYears(-1);
var searchEnd = calendar.Events.Last().DtStart.AddYears(1);
var eventOccurrences = calendar.Events
_ = calendar.Events
.SelectMany(e => e.GetOccurrences(searchStart, searchEnd))
.ToList();
}
Expand All @@ -35,7 +35,7 @@ public void MultipleEventsWithUntilOccurrencesEventsAsParallel()
var calendar = GetFourCalendarEventsWithUntilRule();
var searchStart = calendar.Events.First().DtStart.AddYears(-1);
var searchEnd = calendar.Events.Last().DtStart.AddYears(1).AddDays(10);
var eventOccurrences = calendar.Events
_ = calendar.Events
.AsParallel()
.SelectMany(e => e.GetOccurrences(searchStart, searchEnd))
.ToList();
Expand Down Expand Up @@ -79,7 +79,7 @@ public void MultipleEventsWithCountOccurrencesSearchingByWholeCalendar()
var calendar = GetFourCalendarEventsWithCountRule();
var searchStart = calendar.Events.First().DtStart.AddYears(-1);
var searchEnd = calendar.Events.Last().DtStart.AddYears(1);
var occurences = calendar.GetOccurrences(searchStart, searchEnd);
_ = calendar.GetOccurrences(searchStart, searchEnd);
}

[Benchmark]
Expand All @@ -88,7 +88,7 @@ public void MultipleEventsWithCountOccurrences()
var calendar = GetFourCalendarEventsWithCountRule();
var searchStart = calendar.Events.First().DtStart.AddYears(-1);
var searchEnd = calendar.Events.Last().DtStart.AddYears(1);
var eventOccurrences = calendar.Events
_ = calendar.Events
.SelectMany(e => e.GetOccurrences(searchStart, searchEnd))
.ToList();
}
Expand Down

0 comments on commit 5067c3c

Please sign in to comment.