Skip to content

Commit b665d29

Browse files
committed
Remove deprecated functionality from Get-AzureRmResource that was being called
1 parent e45894f commit b665d29

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,6 @@ private async Task<ResponseWithContinuation<JObject[]>> GetResources()
339339
: new ResponseWithContinuation<JObject[]> { Value = resource.AsArray() };
340340
}
341341

342-
if (this.IsResourceTypeCollectionGet())
343-
{
344-
return await this.ListResourcesTypeCollection().ConfigureAwait(continueOnCapturedContext: false);
345-
}
346-
347342
if (this.IsResourceGroupLevelQuery())
348343
{
349344
return await this.ListResourcesInResourceGroup().ConfigureAwait(continueOnCapturedContext: false);
@@ -582,16 +577,6 @@ private bool IsResourceGet()
582577
this.IsTenantLevelResourceGet();
583578
}
584579

585-
/// <summary>
586-
/// Returns true if this is get on a resource type collection, at any scope.
587-
/// </summary>
588-
private bool IsResourceTypeCollectionGet()
589-
{
590-
return this.IsResourceGroupLevelResourceTypeCollectionGet() ||
591-
this.IsSubscriptionLevelResourceTypeCollectionGet() ||
592-
this.IsTenantLevelResourceTypeCollectionGet();
593-
}
594-
595580
/// <summary>
596581
/// Returns true if this is a get on a type collection that is at the subscription level.
597582
/// </summary>

0 commit comments

Comments
 (0)