Skip to content

Commit c98ded3

Browse files
authored
Merge pull request KelvinTegelaar#1652 from Zacgoose/cleanup
Chore: Clean-up
2 parents 8795fbd + 7ef678e commit c98ded3

File tree

369 files changed

+3
-1297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+3
-1297
lines changed

Modules/CIPPCore/Public/CippQueue/Invoke-RemoveCippQueue.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ function Invoke-RemoveCippQueue {
66
CIPP.Core.ReadWrite
77
#>
88
param($Request, $TriggerMetadata)
9-
10-
$APIName = $Request.Params.CIPPEndpoint
11-
$Headers = $Request.Headers
12-
13-
149
$CippQueue = Get-CippTable -TableName 'CippQueue'
1510
Clear-AzDataTable @CippQueue
1611
$CippQueueTasks = Get-CippTable -TableName 'CippQueueTasks'

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAddAlert.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ function Invoke-ExecAddAlert {
99
#>
1010
[CmdletBinding()]
1111
param($Request, $TriggerMetadata)
12-
13-
$APIName = $Request.Params.CIPPEndpoint
1412
$Headers = $Request.Headers
1513

1614

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAzBobbyTables.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ function Invoke-ExecAzBobbyTables {
1212
#>
1313
[CmdletBinding()]
1414
param($Request, $TriggerMetadata)
15-
16-
$APIName = $Request.Params.CIPPEndpoint
17-
$Headers = $Request.Headers
18-
19-
2015
$AllowList = @(
2116
'Add-AzDataTableEntity'
2217
'Add-CIPPAzDataTableEntity'

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecCPVRefresh.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ function Invoke-ExecCPVRefresh {
1111
#>
1212
[CmdletBinding()]
1313
param($Request, $TriggerMetadata)
14-
15-
$APIName = $Request.Params.CIPPEndpoint
16-
$Headers = $Request.Headers
17-
18-
1914
$InstanceId = Start-UpdatePermissionsOrchestrator
2015

2116
return @{

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecCippFunction.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ function Invoke-ExecCippFunction {
1111
#>
1212
[CmdletBinding()]
1313
param($Request, $TriggerMetadata)
14-
15-
$APIName = $Request.Params.CIPPEndpoint
16-
$Headers = $Request.Headers
17-
18-
1914
$BlockList = @(
2015
'Get-GraphToken'
2116
'Get-GraphTokenFromCert'

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecDurableFunctions.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ function Invoke-ExecDurableFunctions {
77
#>
88
[CmdletBinding(SupportsShouldProcess = $true)]
99
param($Request, $TriggerMetadata)
10-
11-
$APIName = $Request.Params.CIPPEndpoint
12-
$Headers = $Request.Headers
13-
14-
1510
# Collect info
1611
$StorageContext = New-AzStorageContext -ConnectionString $env:AzureWebJobsStorage
1712
$FunctionName = $env:WEBSITE_SITE_NAME

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecEditTemplate.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ function Invoke-ExecEditTemplate {
1111
param($Request, $TriggerMetadata)
1212

1313
$APIName = $Request.Params.CIPPEndpoint
14-
$Headers = $Request.Headers
15-
16-
1714
try {
1815
$Table = Get-CippTable -tablename 'templates'
1916
$guid = $request.body.id ? $request.body.id : $request.body.GUID
@@ -44,7 +41,6 @@ function Invoke-ExecEditTemplate {
4441
}
4542

4643

47-
# Associate values to output bindings by calling 'Push-OutputBinding'.
4844
return ([HttpResponseContext]@{
4945
StatusCode = [HttpStatusCode]::OK
5046
Body = $body

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecGeoIPLookup.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ Function Invoke-ExecGeoIPLookup {
99
#>
1010
[CmdletBinding()]
1111
param($Request, $TriggerMetadata)
12-
13-
$APIName = $Request.Params.CIPPEndpoint
14-
$Headers = $Request.Headers
15-
16-
1712
$IP = $Request.Query.IP ?? $Request.Body.IP
1813

1914
if (-not $IP) {
@@ -23,7 +18,6 @@ Function Invoke-ExecGeoIPLookup {
2318
$locationInfo = Get-CIPPGeoIPLocation -IP $IP
2419
}
2520

26-
# Associate values to output bindings by calling 'Push-OutputBinding'.
2721
return ([HttpResponseContext]@{
2822
StatusCode = [HttpStatusCode]::OK
2923
Body = $LocationInfo

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecListBackup.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ function Invoke-ExecListBackup {
99
#>
1010
[CmdletBinding()]
1111
param($Request, $TriggerMetadata)
12-
13-
$APIName = $Request.Params.CIPPEndpoint
14-
$Headers = $Request.Headers
15-
16-
1712
$Type = $Request.Query.Type
1813
$TenantFilter = $Request.Query.tenantFilter
1914
$NameOnly = $Request.Query.NameOnly

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ function Invoke-ExecPartnerWebhook {
66
CIPP.AppSettings.ReadWrite
77
#>
88
Param($Request, $TriggerMetadata)
9-
10-
$APIName = $Request.Params.CIPPEndpoint
11-
$Headers = $Request.Headers
12-
13-
149
switch ($Request.Query.Action) {
1510
'ListEventTypes' {
1611
$Uri = 'https://api.partnercenter.microsoft.com/webhooks/v1/registration/events'

0 commit comments

Comments
 (0)