Skip to content

refactor: clean out variables that are being assigned to but not being read #9871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 9, 2018

Clears out private properties and local variables that are declared and assigned values, but aren't actually being read at any point. This will start being caught by tslint once we update to TS 2.6.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 9, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Feb 9, 2018
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

should we add a lint check to stop them from creeping back in?

@mmalerba mmalerba added target: patch This PR is targeted for the next patch release and removed pr: merge safe labels Feb 9, 2018
@crisbeto
Copy link
Member Author

crisbeto commented Feb 9, 2018

tslint will start catching them when we update to TS 2.6 @mmalerba. I didn't bump to TS 2.6 in this PR, because there are some build issues that we'll need to sort out.

@crisbeto crisbeto force-pushed the ts-2.6-errors branch 3 times, most recently from b5e46c3 to 4a9f2e5 Compare February 12, 2018 22:09
@josephperrott
Copy link
Member

@crisbeto please rebase

@googlebot googlebot added cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla and removed cla: yes PR author has agreed to Google's Contributor License Agreement labels Feb 22, 2018
@josephperrott josephperrott added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels Feb 22, 2018
@josephperrott
Copy link
Member

Updating to cla: yes as the non-cla'd commit was done by me via github.

@crisbeto
Copy link
Member Author

Rebased @josephperrott.

@angular angular deleted a comment from googlebot Feb 22, 2018
…g read

Clears out private properties and local variables that are declared and assigned values, but aren't actually being read at any point. This will start being caught by tslint once we update to TS 2.6.
@josephperrott josephperrott merged commit f33e2a2 into angular:master Feb 22, 2018
mmalerba pushed a commit to mmalerba/components that referenced this pull request Feb 26, 2018
jelbourn pushed a commit to jelbourn/components that referenced this pull request Feb 27, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants