Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 73c1274

Browse files
committed
Delete unused NodeTreeFromSortedSet method
Dead code after recent optimizations.
1 parent d05a07b commit 73c1274

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableSortedSet`1.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,26 +1715,6 @@ internal Enumerator GetEnumerator(Builder builder)
17151715
return new Enumerator(this, builder);
17161716
}
17171717

1718-
/// <summary>
1719-
/// Creates a node tree from an existing (mutable) collection.
1720-
/// </summary>
1721-
/// <param name="collection">The collection.</param>
1722-
/// <returns>The root of the node tree.</returns>
1723-
[Pure]
1724-
internal static Node NodeTreeFromSortedSet(SortedSet<T> collection)
1725-
{
1726-
Requires.NotNull(collection, "collection");
1727-
Contract.Ensures(Contract.Result<Node>() != null);
1728-
1729-
if (collection.Count == 0)
1730-
{
1731-
return EmptyNode;
1732-
}
1733-
1734-
var list = collection.AsOrderedCollection();
1735-
return NodeTreeFromList(list, 0, list.Count);
1736-
}
1737-
17381718
/// <summary>
17391719
/// See the <see cref="ICollection{T}"/> interface.
17401720
/// </summary>

0 commit comments

Comments
 (0)