IoHelpers: Remove unused "CheckExpectedHash" method.
MODIFY
WalletWasabi/Helpers/IoHelpers.cs
WalletWasabi/Helpers/IoHelpers.cs
@@ -103,28 +103,6 @@ namespace System.IO
return HashHelpers.GenerateSha256Hash(bytes);
}
- public static bool CheckExpectedHash(string filePath, string sourceFolderPath)
- {
- var fileHash = GetHashFile(filePath);
- try
- {
- var digests = File.ReadAllLines(Path.Combine(sourceFolderPath, "digests.txt"));
- foreach (var digest in digests)
- {
- var expectedHash = ByteHelpers.FromHex(digest);
- if (ByteHelpers.CompareFastUnsafe(fileHash, expectedHash))
- {
- return true;
- }
- }
- return false;
- }
- catch
- {
- return false;
- }
- }
-
public static void OpenFolderInFileExplorer(string dirPath)
{
if (Directory.Exists(dirPath))

IoHelpers: Remove unused "CheckExpectedHash" method.