[SimpleSort] Removed commented code

This commit is contained in:
Matt Nadareski
2016-06-21 10:41:51 -07:00
parent 09be8adfdc
commit 1bfe22b27b

View File

@@ -449,24 +449,6 @@ namespace SabreTools
_logger.User("Rebuilding file '" + Path.GetFileName(rom.Name) + "' to '" + found.Name + "'"); _logger.User("Rebuilding file '" + Path.GetFileName(rom.Name) + "' to '" + found.Name + "'");
string archiveFileName = Path.Combine(_outdir, found.Game + ".zip"); string archiveFileName = Path.Combine(_outdir, found.Game + ".zip");
ArchiveTools.CopyFileBetweenArchives(input, archiveFileName, rom.Name, found.Name, _logger); ArchiveTools.CopyFileBetweenArchives(input, archiveFileName, rom.Name, found.Name, _logger);
/*
// Extract file into temp and then rebuild
string newinput = ArchiveTools.ExtractSingleItemFromArchive(input, rom.Name, _tempdir, _logger);
if (newinput != null && File.Exists(newinput))
{
_logger.User("Rebuilding file '" + Path.GetFileName(rom.Name) + "' to '" + found.Name + "'");
ArchiveTools.WriteToArchive(newinput, _outdir, found);
try
{
File.Delete(newinput);
}
catch (Exception)
{
// Don't log file deletion errors
}
}
*/
} }
} }
} }
@@ -576,7 +558,6 @@ namespace SabreTools
/* /*
Now, how do we do this WITHOUT traversing the list a billion times? Now, how do we do this WITHOUT traversing the list a billion times?
Does "contains" work in this situation? Does "contains" work in this situation?
We have to check if it's an exact duplicate or a hash-duplicate
Which is better: traversing the "should have" list or the "do have" list? Which is better: traversing the "should have" list or the "do have" list?
*/ */
List<Rom> fromDat = sortedByGame[Path.GetFileNameWithoutExtension(archive)]; List<Rom> fromDat = sortedByGame[Path.GetFileNameWithoutExtension(archive)];