Skip to content

Commit 3b715ab

Browse files
committed
Remove unused function
1 parent 2f3d560 commit 3b715ab

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

powershell-adapter/psDscAdapter/psDscAdapter.psm1

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -548,27 +548,6 @@ function ValidateMethod {
548548
return $method
549549
}
550550

551-
function GetResultProperties {
552-
param (
553-
[Parameter(Mandatory = $true)]
554-
[psobject] $raw_obj,
555-
[Parameter(Mandatory = $true)]
556-
[string[]] $ValidProperties
557-
)
558-
559-
$result = @{}
560-
$ValidProperties | ForEach-Object {
561-
if ($raw_obj.$_ -is [System.Enum]) {
562-
$result[$_] = $raw_obj.$_.ToString()
563-
}
564-
else {
565-
$result[$_] = $raw_obj.$_
566-
}
567-
}
568-
569-
return $result
570-
}
571-
572551
# cached resource
573552
class dscResourceCacheEntry {
574553
[string] $Type

0 commit comments

Comments
 (0)