Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Clean up dead code for System.Collections* #28840

Merged
merged 3 commits into from
Apr 17, 2018

Conversation

MisinformedDNA
Copy link

#17905

/// </summary>
internal int Count
{
get { return _count; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the _count field used anywhere else? Should it be deleted too?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I'll delete.

@@ -17,10 +17,6 @@ internal CompatibleComparer(IHashCodeProvider hashCodeProvider, IComparer compar
_comparer = comparer;
}

internal IHashCodeProvider HashCodeProvider => _hcp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think splitting the file into two just because of these two trivial properties is not an improvement. I would keep it as it is.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was suggested to me, but I agree with you. Will fix.

/// <summary>
/// Initializes a new instance of the <see cref="ImmutableDictionary{TKey, TValue}.MutationInput"/> struct.
/// </summary>
/// <param name="root">The root.</param>
/// <param name="comparers">The comparers.</param>
/// <param name="count">The current number of elements in the collection.</param>
///
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Delete this empty comment line.

@danmoseley danmoseley added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Apr 6, 2018
@danmoseley
Copy link
Member

Marking no-merge to hold this for a week or so until master = 2.2

@joshfree joshfree added this to the 2.2.0 milestone Apr 7, 2018
@jkotas jkotas merged commit d7396b2 into dotnet:master Apr 17, 2018
@MisinformedDNA MisinformedDNA deleted the clean-dead-code-collections branch April 17, 2018 02:39
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Collections * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants