[DatFile] tempSubDir was unused

This commit is contained in:
Matt Nadareski
2017-12-05 15:11:41 -08:00
parent 161a869e0f
commit c98e1c6da0

View File

@@ -3343,9 +3343,6 @@ namespace SabreTools.Library.DatFiles
private void CheckFileForHashes(string item, string basePath, Hash omitFromScan, bool bare, bool archivesAsFiles, private void CheckFileForHashes(string item, string basePath, Hash omitFromScan, bool bare, bool archivesAsFiles,
SkipFileType skipFileType, bool addBlanks, bool addDate, string tempDir, bool copyFiles, string headerToCheckAgainst, bool chdsAsFiles) SkipFileType skipFileType, bool addBlanks, bool addDate, string tempDir, bool copyFiles, string headerToCheckAgainst, bool chdsAsFiles)
{ {
// Define the temporary directory
string tempSubDir = Path.GetFullPath(Path.Combine(tempDir, new Guid().ToString())) + Path.DirectorySeparatorChar;
// Special case for if we are in Romba mode (all names are supposed to be SHA-1 hashes) // Special case for if we are in Romba mode (all names are supposed to be SHA-1 hashes)
if (Romba) if (Romba)
{ {
@@ -3450,9 +3447,6 @@ namespace SabreTools.Library.DatFiles
{ {
Utilities.TryDeleteDirectory(newBasePath); Utilities.TryDeleteDirectory(newBasePath);
} }
// Delete the sub temp directory
Utilities.TryDeleteDirectory(tempSubDir);
} }
/// <summary> /// <summary>