[DatFile] HTML encoded game names for mono worked, so added safeguards are no longer needed.

This commit is contained in:
Matt Nadareski
2016-09-21 14:23:59 -07:00
parent fa4a5c6f41
commit f147a06bc0

View File

@@ -2288,13 +2288,6 @@ namespace SabreTools.Helper
keys = sortable.Keys.ToList(); keys = sortable.Keys.ToList();
foreach (string key in keys) foreach (string key in keys)
{ {
// If the dictionary somehow doesn't have the key in question, continue
if (!sortable.ContainsKey(key))
{
logger.Warning("SortedDictionary does not contain key: " + key);
continue;
}
List<DatItem> sortedlist = sortable[key]; List<DatItem> sortedlist = sortable[key];
DatItem.Sort(ref sortedlist, norename); DatItem.Sort(ref sortedlist, norename);
sortable[key] = sortedlist; sortable[key] = sortedlist;
@@ -2987,13 +2980,6 @@ namespace SabreTools.Helper
foreach (string key in keys) foreach (string key in keys)
{ {
// If the dictionary somehow doesn't have the key in question, continue
if (!sortable.ContainsKey(key))
{
logger.Warning("SortedDictionary does not contain key: " + key);
continue;
}
List<DatItem> roms = sortable[key]; List<DatItem> roms = sortable[key];
for (int index = 0; index < roms.Count; index++) for (int index = 0; index < roms.Count; index++)