Skip to content

Remove unused private parameters in SPC - #63015

Merged
marek-safar merged 9 commits into
dotnet:mainfrom
marek-safar:ide0060
Feb 12, 2022
Merged

Remove unused private parameters in SPC#63015
marek-safar merged 9 commits into
dotnet:mainfrom
marek-safar:ide0060

Conversation

@marek-safar

Copy link
Copy Markdown
Contributor

and remove related dead code

@ghost

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

and remove related dead code
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.

Issue Details

and remove related dead code

Author:marek-safar
Assignees:marek-safar
Labels:

area-System.Runtime

Milestone:-

Comment threadsrc/coreclr/System.Private.CoreLib/src/System/MulticastDelegate.cs Outdated
Comment threadsrc/libraries/System.Private.CoreLib/src/System/ByReference.cs Outdated
Comment threadsrc/libraries/System.Private.CoreLib/src/System/DateTime.Unix.cs Outdated
@jkotas

Copy link
Copy Markdown
Member

Many instances of this stylecop warning were cleaned up in dotnet/coreclr#26104, but the enforcement was not enabled enforcement as part of that PR. cc @stephentoub

internal static bool CanSetMaxIOCompletionThreads(int ioCompletionThreads) => true;
#pragma warning restore IDE0060

[Conditional("unnecessary")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some of the similar cases are partial methods. Is there are reason why these are Conditional("unnecessary") and not partial methods?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

They are not private hence we cannot use a partial method without an implementation.

Comment threadsrc/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.Unix.cs Outdated
@stephentoub

Copy link
Copy Markdown
Member

Many instances of this stylecop warning were cleaned up in dotnet/coreclr#26104, but the enforcement was not enabled enforcement as part of that PR. cc @stephentoub

Because there was a lot left to do across the repo :)

@stephentoub

stephentoub commented Jan 3, 2022

Copy link
Copy Markdown
Member

@marek-safar, are you planning to fix all occurrences of this across the repo and enable the rule?

Otherwise, I'm not a big fan of adding a lot of suppressions for a rule we explicitly disable.

@marek-safar

Copy link
Copy Markdown
ContributorAuthor

are you planning to fix all occurrences of this across the repo and enable the rule?

I'd like in 2022 ;-)

Comment threadsrc/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs Outdated

@eerhardteerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@marek-safar
marek-safar merged commit 47bcd1a into dotnet:mainFeb 12, 2022
@marek-safar
marek-safar deleted the ide0060 branch February 12, 2022 17:44
@ghostghost locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@marek-safar@jkotas@stephentoub@adamsitnik@eerhardt