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

♻️Cleanup FxProvider's private fields #14804

Merged
merged 3 commits into from
Apr 26, 2018

Conversation

jridgewell
Copy link
Contributor

@jridgewell jridgewell commented Apr 23, 2018

  • ampdoc_ appears unused,
  • initialize_ is called externally (meaning it's really public)
    • Additionally, it's only ever called after construction, so why isn't
      it just in the constructor?
  • adjustedViewportHeight_ is called externally (meaning it's really public)

Part of #14761.

Copy link
Contributor

@nainar nainar left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up!

- `ampdoc_` appears unused,
- `initialize_` is called externally (meaning it's really public)
  - Additionally, it's only ever called after construction, so why isn't
  it just in the constructor?
It's accessed from outside the class, meaning it's public.
@jridgewell jridgewell merged commit 42bc3b4 into ampproject:master Apr 26, 2018
@jridgewell jridgewell deleted the fx-provider-cleanup branch April 26, 2018 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants