Skip to content
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

fix(core): remove duplicated noop function #39761

Closed

Conversation

cexbrayat
Copy link
Member

PR Checklist
Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The codebase currently contains several noop functions,
and they can end up in the bundle of an application.
A recent commit 6fbe219 tipped us off
as it introduced several noop occurrences in the golden symbol files.
After investigating with @petebacondarwin,
we decided to remove the duplicated functions.

What is the new behavior?

This probably shaves only a few bytes,
but this commit removes the duplicated functions,
by always using the one in core/src/utils/noop.

Does this PR introduce a breaking change?

  • Yes
  • No

The codebase currently contains several `noop` functions,
and they can end up in the bundle of an application.
A recent commit 6fbe219 tipped us off
as it introduced several `noop` occurrences in the golden symbol files.
After investigating with @petebacondarwin,
we decided to remove the duplicated functions.

This probably shaves only a few bytes,
but this commit removes the duplicated functions,
by always using the one in `core/src/utils/noop`.
@google-cla google-cla bot added the cla: yes label Nov 19, 2020
@pullapprove pullapprove bot requested a review from alxhub November 19, 2020 14:29
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release labels Nov 19, 2020
@ngbot ngbot bot modified the milestone: needsTriage Nov 19, 2020
@mhevery mhevery added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 19, 2020
@mhevery mhevery self-assigned this Nov 19, 2020
Copy link
Contributor

@mhevery mhevery left a comment

Choose a reason for hiding this comment

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

reviewed-for: global-approvers

@mhevery
Copy link
Contributor

mhevery commented Nov 19, 2020

presubmit

@mhevery mhevery removed the request for review from alxhub November 19, 2020 18:26
AndrewKushnir pushed a commit that referenced this pull request Nov 19, 2020
The codebase currently contains several `noop` functions,
and they can end up in the bundle of an application.
A recent commit 6fbe219 tipped us off
as it introduced several `noop` occurrences in the golden symbol files.
After investigating with @petebacondarwin,
we decided to remove the duplicated functions.

This probably shaves only a few bytes,
but this commit removes the duplicated functions,
by always using the one in `core/src/utils/noop`.

PR Close #39761
@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 Dec 20, 2020
@pullapprove pullapprove bot removed the area: core Issues related to the framework runtime label Dec 20, 2020
@ngbot ngbot bot removed this from the needsTriage milestone Dec 20, 2020
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 refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants