From 10da318989f47f57c66a297e34b4da707a5ffb20 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Fri, 22 Sep 2017 16:54:34 +0200 Subject: [PATCH] Get-FileHash is now unused --- build/Modules/Umbraco.Build/Utilities.ps1 | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/build/Modules/Umbraco.Build/Utilities.ps1 b/build/Modules/Umbraco.Build/Utilities.ps1 index 29b3c47429..8ca24885cd 100644 --- a/build/Modules/Umbraco.Build/Utilities.ps1 +++ b/build/Modules/Umbraco.Build/Utilities.ps1 @@ -1,28 +1,3 @@ -# returns a string containing the hash of $file -function Get-FileHash($file) -{ - try - { - $crypto = new-object System.Security.Cryptography.SHA1CryptoServiceProvider - $stream = [System.IO.File]::OpenRead($file) - $hash = $crypto.ComputeHash($stream) - $text = "" - $hash | foreach ` - { - $text = $text + $_.ToString("x2") - } - return $text - } - finally - { - if ($stream) - { - $stream.Dispose() - } - $crypto.Dispose() - } -} - # returns the full path if $file is relative to $pwd function Get-FullPath($file) {