From d31e35075e603daa358cb5d268cec087ba35effb Mon Sep 17 00:00:00 2001 From: Stefan Henseler Date: Sun, 25 Mar 2018 16:27:57 +0200 Subject: [PATCH] Removes obsolete code --- common/powershell/hyperv/hyperv.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/common/powershell/hyperv/hyperv.go b/common/powershell/hyperv/hyperv.go index 5fa6ea113..c019e55ce 100644 --- a/common/powershell/hyperv/hyperv.go +++ b/common/powershell/hyperv/hyperv.go @@ -53,22 +53,6 @@ $ip return cmdOut, err } -//func CreateVirtualHardDiskDrive(vmName string, diskPath string, diskSize int64, diskBlockSize int64, generation uint) (uint, uint, error) { -// -// var script = ` -//param([string]$vmName, [string]$path, -// -// -//[long]$memoryStartupBytes, [long]$newVHDSizeBytes, [string]$switchName, [int]$generation) -//$vhdx = $vmName + '.vhdx' -//$vhdPath = Join-Path -Path $path -ChildPath $vhdx -//New-VM -Name $vmName -Path $path -MemoryStartupBytes $memoryStartupBytes -NewVHDPath $vhdPath -NewVHDSizeBytes $newVHDSizeBytes -SwitchName $switchName -Generation $generation -//` -// var ps powershell.PowerShellCmd -// err := ps.Run(script, vmName, path, strconv.FormatInt(ram, 10), strconv.FormatInt(diskSize, 10), switchName, strconv.FormatInt(int64(generation), 10)) -// return err -//} - func CreateDvdDrive(vmName string, isoPath string, generation uint) (uint, uint, error) { var ps powershell.PowerShellCmd var script string