Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed May 9, 2024
1 parent bb2308b commit d6e38c3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions source/Public/Save-SqlDscSqlServerMedia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ function Save-SqlDscSqlServerMedia

Write-Verbose -Message "Downloading SQL Server media to '$destinationFilePath'"

# TODO: Add a timer to measure the time taken to download the media file.
$connectTimer = [System.Diagnostics.StopWatch]::StartNew()
$connectTimer.Elapsed.TotalSeconds
$connectTimer.Stop()

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$isExecutable = $false
Expand Down Expand Up @@ -220,7 +215,5 @@ function Save-SqlDscSqlServerMedia
Rename-Item -Path $isoFile.FullName -NewName $FileName -Force
}

Write-Verbose -Message "Finished downloading the SQL Server media iso at $(Get-Date -Format 'yyyy-MM-dd hh:mm:ss')"

return (Get-Item -Path $destinationFilePath)
}

0 comments on commit d6e38c3

Please sign in to comment.