Skip to content

Commit

Permalink
GetCalculatableEvents() use CollectionHelper.MergeTwoSortedCollections()
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Oct 28, 2024
1 parent 2d9c749 commit bcd7a85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ private enum ChgEvt

public IEnumerable<(TGrid TGrid, double speed, BPMChange curBpm)> GetCalculatableEvents(BpmList bpmList, bool isDesignModel)
{
var sortList = new SortableCollection<(ITimelineObject timeline, ChgEvt evt), TGrid>(x => x.timeline.TGrid);
foreach (var timelineObject in this.FilterNull().AsEnumerable<ITimelineObject>().Concat(bpmList))
var sortList = new List<(ITimelineObject timeline, ChgEvt evt)>();
foreach (var timelineObject in CollectionHelper.MergeTwoSortedCollections<ITimelineObject, TGrid>(x => x.TGrid, this, bpmList))
{
switch (timelineObject)
{
Expand Down

0 comments on commit bcd7a85

Please sign in to comment.