Skip to content

Commit

Permalink
Remove AddRange(...) methods from Collection<T> subclases
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbu committed May 2, 2019
1 parent 044c088 commit de530fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
Expand Down Expand Up @@ -51,18 +51,6 @@ public ApiResource this[string key]
}
}

/// <summary>
/// Adds the resources in <paramref name="resources"/> to the collection.
/// </summary>
/// <param name="resources">The list of <see cref="ApiResource"/> to add.</param>
public void AddRange(IEnumerable<ApiResource> resources)
{
foreach (var resource in resources)
{
Add(resource);
}
}

/// <summary>
/// Adds the resources in <paramref name="resources"/> to the collection.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,6 @@ public Client this[string key]
}
}

/// <summary>
/// Adds the clients in <paramref name="clients"/> to the collection.
/// </summary>
/// <param name="clients">The list of <see cref="Client"/> to add.</param>
public void AddRange(IEnumerable<Client> clients)
{
foreach (var client in clients)
{
Add(client);
}
}

/// <summary>
/// Adds the clients in <paramref name="clients"/> to the collection.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using IdentityServer4.Models;
Expand Down Expand Up @@ -51,18 +51,6 @@ public IdentityResource this[string key]
}
}

/// <summary>
/// Adds the identity resources in <paramref name="identityResources"/> to the collection.
/// </summary>
/// <param name="identityResources">The list of <see cref="IdentityResource"/> to add.</param>
public void AddRange(IEnumerable<IdentityResource> identityResources)
{
foreach (var resource in identityResources)
{
Add(resource);
}
}

/// <summary>
/// Adds the identity resources in <paramref name="identityResources"/> to the collection.
/// </summary>
Expand Down

0 comments on commit de530fc

Please sign in to comment.