Skip to content

Commit a0bf1bd

Browse files
authored
Remove unnecessary GroupedListEnumerator (#793)
1 parent c7fd686 commit a0bf1bd

File tree

2 files changed

+1
-107
lines changed

2 files changed

+1
-107
lines changed

Ical.Net/Collections/GroupedList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ TItem IList<TItem>.this[int index]
218218
set => this[index] = value;
219219
}
220220

221-
public IEnumerator<TItem> GetEnumerator() => new GroupedListEnumerator<TItem>(_lists);
221+
public IEnumerator<TItem> GetEnumerator() => _lists.SelectMany(x => x).GetEnumerator();
222222

223223
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
224224
}

Ical.Net/Collections/GroupedListEnumerator.cs

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)