Skip to content

Commit

Permalink
Fixed issue with sequence break loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrippSC2 committed Mar 8, 2021
1 parent 3ffc833 commit c1fa87a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions OpenTracker.Models/SequenceBreaks/SequenceBreakDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using OpenTracker.Models.SaveLoad;
using OpenTracker.Utils;
using System;
using System.Collections.Generic;

namespace OpenTracker.Models.SequenceBreaks
Expand Down Expand Up @@ -30,17 +29,6 @@ protected override ISequenceBreak Create(SequenceBreakType key)
return _factory();
}

/// <summary>
/// Resets all contained sequence breaks to their starting values.
/// </summary>
public void Reset()
{
foreach (var sequenceBreak in Values)
{
sequenceBreak.Reset();
}
}

/// <summary>
/// Returns a dictionary of sequence break save data.
/// </summary>
Expand All @@ -67,7 +55,7 @@ public void Load(Dictionary<SequenceBreakType, SequenceBreakSaveData>? saveData)
{
if (saveData == null)
{
throw new ArgumentNullException(nameof(saveData));
return;
}

foreach (var type in saveData.Keys)
Expand Down

0 comments on commit c1fa87a

Please sign in to comment.