Skip to content

Commit d8fc526

Browse files
committed
Remove unnecessary enum
1 parent f4fa761 commit d8fc526

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

JournalMonitor/JournalMonitor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public JournalMonitor () : base( GetSavedGamesDir(), @"^Journal.*\.[0-9\.]+\.log
3535
/// </summary>
3636
private static readonly ConcurrentDictionary<string, ConcurrentBag<Event>> DelayedEventHolder = new ConcurrentDictionary<string, ConcurrentBag<Event>>();
3737

38-
private enum ShipyardType { [UsedImplicitly] ShipsHere, [UsedImplicitly] ShipsRemote }
39-
4038
internal static CancellationTokenSource ShipShutdownCancellationTokenSource;
4139

4240
private static void ForwardJournalEntries ( IList<string> lines, Action<Event> callback, bool isLogLoadEventBatch )
@@ -3367,7 +3365,7 @@ dest.y is decimal sy &&
33673365
var station = JsonParsing.getString(data, "StationName");
33683366

33693367
var shipyard = new List<Ship>();
3370-
foreach (var type in Enum.GetNames(typeof(ShipyardType)))
3368+
foreach (var type in new string[] { "ShipsHere", "ShipsRemote" } )
33713369
{
33723370
data.TryGetValue(type, out var val);
33733371
var shipsData = (List<object>)val;

0 commit comments

Comments
 (0)