diff --git a/SabreTools.Helper/Tools/FileTools.cs b/SabreTools.Helper/Tools/FileTools.cs
index 1296a52e..9a743a36 100644
--- a/SabreTools.Helper/Tools/FileTools.cs
+++ b/SabreTools.Helper/Tools/FileTools.cs
@@ -4,7 +4,6 @@ using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
-using System.Threading.Tasks;
using System.Xml;
namespace SabreTools.Helper
@@ -307,23 +306,6 @@ namespace SabreTools.Helper
return success;
}
- ///
- /// Copy a file to a new location, creating directories as needed
- ///
- /// Input filename
- /// Output filename
- public static void CopyFileToNewLocation(string input, string output)
- {
- if (File.Exists(input) && !File.Exists(output))
- {
- if (!Directory.Exists(Path.GetDirectoryName(output)))
- {
- Directory.CreateDirectory(Path.GetDirectoryName(output));
- }
- File.Copy(input, output);
- }
- }
-
///
/// Cleans out the temporary directory
///
@@ -348,58 +330,6 @@ namespace SabreTools.Helper
}
}
- ///
- /// Delete a file asynchronously
- ///
- /// Name of the file to be deleted
- public async static void DeleteFile(string filename)
- {
- if (!File.Exists(filename))
- {
- return;
- }
-
- File.SetAttributes(filename, 0);
- FileInfo fi = new FileInfo(filename);
- fi.IsReadOnly = false;
- await Task.Factory.StartNew(() =>
- {
- while (fi.Exists)
- {
- try
- {
- fi.Delete();
- }
- catch { }
- }
- });
- }
-
- ///
- /// Delete a directory asynchronously
- ///
- /// Name of the directory to be deleted
- public async static void DeleteDirectory(string dirname)
- {
- if (!Directory.Exists(dirname))
- {
- return;
- }
-
- DirectoryInfo di = new DirectoryInfo(dirname);
- await Task.Factory.StartNew(() =>
- {
- while (di.Exists)
- {
- try
- {
- di.Delete(true);
- }
- catch { }
- }
- });
- }
-
#endregion
#region Stream Information