Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvs committed Feb 7, 2024
1 parent 7834635 commit 626f17d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions functions/DiskSmartInfo.functions.internal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,6 @@ function inGetHistoricalData
}
}

# function inReportErrors
# {
# foreach ($cimSessionError in $Script:cimSessionErrors)
# {
# $message = "ComputerName: ""$($cimSessionError.OriginInfo.PSComputerName)"". $($cimSessionError.Exception.Message)"
# $exception = [System.Exception]::new($message, $cimSessionError.Exception)
# $errorRecord = [System.Management.Automation.ErrorRecord]::new($exception, $cimSessionError.FullyQualifiedErrorId, $cimSessionError.CategoryInfo.Category, $cimSessionError.TargetObject)
# $PSCmdlet.WriteError($errorRecord)
# }
# }

function inReportErrors
{
Param (
Expand Down
8 changes: 0 additions & 8 deletions functions/DiskSmartInfo.functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ function Get-DiskSmartInfo

begin
{
# $Script:cimSessionErrors = @()

# $Script:cimErrorParameters = @{
# ErrorVariable = '+Script:CimSessionErrors'
# ErrorAction = 'SilentlyContinue'
# }
$errorParameters = @{
ErrorVariable = 'cimSessionErrors'
ErrorAction = 'SilentlyContinue'
Expand Down Expand Up @@ -182,7 +176,5 @@ function Get-DiskSmartInfo
}
}
}

# inReportErrors
}
}

0 comments on commit 626f17d

Please sign in to comment.