From d0d6427b38f0f2bca5f4f4d9292760a41466d6fc Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 2 Aug 2020 00:50:32 +0200 Subject: [PATCH] removed dead code --- Public/Select-GPOTranslation.ps1 | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Public/Select-GPOTranslation.ps1 diff --git a/Public/Select-GPOTranslation.ps1 b/Public/Select-GPOTranslation.ps1 deleted file mode 100644 index 9920105..0000000 --- a/Public/Select-GPOTranslation.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -function Select-GPOTranslation { - [cmdletbInding()] - param( - [Parameter(ValueFromPipeline)][System.Collections.IDictionary] $InputObject, - [string] $Category, - [string] $Settings - ) - - $Important = [ordered] @{} - $AllProperties = Select-Properties -AllProperties -Objects $InputObject.$Category.$Settings - $MissingProperties = $AllProperties | Where-Object { $_ -notin 'DisplayName', 'DomainName', 'GUID', 'Linked', 'LinksCount', 'Links', 'GPOType', 'GPOCategory', 'GPOSettings' } - $Types = foreach ($Property in $MissingProperties) { - ($InputObject.$Category.$Settings | Where-Object { $null -ne $_.$Property }).$Property | ForEach-Object { - ($_ | Get-Member -MemberType Properties) | Where-Object { $_.Name -notin 'Length' } - } - } - $Important['AllProperties'] = $AllProperties - $Important['MissingProperties'] = $MissingProperties - $Important['Types'] = $Types | Select-Object -Unique - $Important['Data'] = $InputObject.$Category.$Settings - $Important -} \ No newline at end of file