diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs
index 7f94723d..0c8e17f2 100644
--- a/SabreTools.Library/DatFiles/DatFile.cs
+++ b/SabreTools.Library/DatFiles/DatFile.cs
@@ -2135,28 +2135,6 @@ namespace SabreTools.Library.DatFiles
return true;
}
- ///
- /// Copy a file to the temp directory if needed and return the new paths
- ///
- /// Filename of the item to be checked
- /// Base folder to be used in creating the DAT
- /// True if files should be copied to the temp directory before hashing, false otherwise
- /// New item and base path strings
- private static (string item, string basePath) CopyIfNeeded(string item, string basePath, bool copyFiles)
- {
- string newItem = item;
- string newBasePath = basePath;
- if (copyFiles)
- {
- newBasePath = Path.Combine(Globals.TempDir, Guid.NewGuid().ToString());
- newItem = Path.GetFullPath(Path.Combine(newBasePath, Path.GetFullPath(item).Remove(0, basePath.Length + 1)));
- DirectoryExtensions.TryCreateDirectory(Path.GetDirectoryName(newItem));
- File.Copy(item, newItem, true);
- }
-
- return (newItem, newBasePath);
- }
-
///
/// Process a single file as an archive
///