Skip to content

chore(compiler): dead code clean-up.#4907

Closed
rkirov wants to merge 1 commit into
angular:masterfrom
rkirov:clean-up
Closed

chore(compiler): dead code clean-up.#4907
rkirov wants to merge 1 commit into
angular:masterfrom
rkirov:clean-up

Conversation

@rkirov
Copy link
Copy Markdown
Contributor

@rkirov rkirov commented Oct 26, 2015

Dead code that uglifyJS found.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if we should rather rewrite is as:

     if (proto.contextIndex == -1) {
       return this._getDirectiveFor(proto.directiveIndex);
     } 

     return values[proto.contextIndex];

Some think there should be no else after a return and I kind of like this convention.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done. Not sure if we need that convention in general, but this is a good case.

Dead code that uglifyJS found.
@mary-poppins
Copy link
Copy Markdown

Merging PR #4907 on behalf of @rkirov to branch presubmit-rkirov-pr-4907.

@rkirov rkirov added the action: merge The PR is ready for merge by the caretaker label Oct 27, 2015
@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 27, 2015
@rkirov rkirov closed this in bfe3efa Oct 27, 2015
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants