Skip to content

Commit

Permalink
Revert aa81621.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Dec 7, 2023
1 parent 84679da commit 2b9c3f8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions JournalMonitor/JournalMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ private enum ShipyardType { ShipsHere, ShipsRemote }
private static readonly Dictionary<long, CancellationTokenSource> carrierJumpCancellationTokenSources =
new Dictionary<long, CancellationTokenSource>();

private static string lastType;

public static void ForwardJournalEntry(string line, Action<Event> callback, bool isLogLoadEvent)
{
if (line == null)
Expand Down Expand Up @@ -112,13 +110,6 @@ public static List<Event> ParseJournalEntry(string line, bool fromLogLoad = fals
EDDI.Instance.JournalTimeStamp = timestamp;
}

// Ignore invalidly duplicated events
if ( lastType == edType && invalidDuplicateEvents.Contains(edType) )
{
return events;
}
lastType = edType;

bool handled = false;
try
{
Expand Down Expand Up @@ -5486,11 +5477,5 @@ private static Compartment parseShipCompartment(string shipEDName, string slot)
"WingJoin",
"WingLeave"
};

private static readonly string[] invalidDuplicateEvents = new string[]
{
// We suppress and ignore duplicate events of these types (FDev journal issues)
"SystemsShutdown"
};
}
}

0 comments on commit 2b9c3f8

Please sign in to comment.