Compare commits

..

No commits in common. "0be9791abc742518f1e0fca9bb9429cc377f10cb" and "32e5898b0258fecb9737adc4f1b916301b37ad72" have entirely different histories.

2 changed files with 1 additions and 17 deletions

View File

@ -747,17 +747,6 @@ public class TransactionParser {
{ Events.SupercruiseEntry, new SupercruiseEntryParser() },
};
public bool IsRelevant(string entry) {
return ParserParts.ContainsKey(entry);
}
public bool IsRelevant(Entry e) {
if (e.Event == null) {
return false;
}
return IsRelevant(e.Event);
}
public List<Transaction>? Parse(IEnumerable<Entry> entries) {
TransactionList transactions = new();
TransactionParserContext context = new();

View File

@ -6,7 +6,6 @@ using System.Windows;
using Microsoft.Win32;
using EDPlayerJournal.Entries;
using EliteBGS.Util;
using EDPlayerJournal.BGS;
namespace EliteBGS;
@ -86,8 +85,6 @@ public partial class LoadEntriesWindow : Window {
return;
}
TransactionParser parser = new();
try {
List<Entry> entries = new List<Entry>();
@ -96,10 +93,8 @@ public partial class LoadEntriesWindow : Window {
continue;
}
Entry entry = Entry.Parse(line);
if (parser.IsRelevant(entry)) {
entries.Add(entry);
}
}
if (entries.Count <= 0) {
return;