Skip to content

Remove FrameChange::document_ready - #14724

Merged
bors-servo merged 2 commits into
servo:masterfrom
zaynetro:remove-frame-change-document-ready
Dec 25, 2016
Merged

bors-servo merged 2 commits into
servo:masterfrom
zaynetro:remove-frame-change-document-ready

Conversation

@zaynetro

@zaynetro zaynetro commented Dec 25, 2016 •

Copy link
Copy Markdown
Contributor

Remove unused FrameChange::document_ready field and remove unused boolean in ConstellationMsg::GetPipeline's second argument.


  • There are tests for these changes OR
  • These changes do not require tests because compiler validates the field is not used anywhere

This change is Reviewable

@highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @nox (or someone else) soon.

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/webdriver_server/lib.rs, components/constellation/constellation.rs
  • @jgraham: components/webdriver_server/lib.rs
  • @fitzgen: components/script_traits/lib.rs, components/script_traits/lib.rs
  • @KiChjang: components/script_traits/lib.rs, components/script_traits/lib.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 25, 2016
@Ms2ger

Ms2ger commented Dec 25, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 95552c4 has been approved by Ms2ger

@highfive highfive assigned Ms2ger and unassigned nox Dec 25, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 25, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 95552c4 with merge 61d8f4d...

bors-servo pushed a commit that referenced this pull request Dec 25, 2016
…=Ms2ger

Remove FrameChange::document_ready

<!-- Please describe your changes on the following line: -->

Remove unused `FrameChange::document_ready` field and remove unused boolean in `ConstellationMsg::GetPipeline`'s second argument.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14693

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because compiler validates the field is not used anywhere

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14724)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit 95552c4 into servo:master Dec 25, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 25, 2016
@zaynetro
zaynetro deleted the remove-frame-change-document-ready branch December 25, 2016 15:52
.map(|frame| frame.current.pipeline_id);
let current_pipeline_id_loaded = current_pipeline_id
.map(|id| (id, true));
.map(|id| id);

@fflorent fflorent Jan 2, 2017 •

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.

Sorry for the late question: what this map call does? As I read it, the callback is an identity function, so it just copies the array (if I am correct).

NB: I am a beginner in Rust, so I may be wrong, don't hesitate to correct me :).

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.

Good catch, it looks like it is not needed anymore. (I may be wrong as well :) )

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.

A PR to remove current_pipeline_id_loaded would be welcome :)

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.

Yes, this used to do something, back when it was map(|id| (id, true)). Now it's pointless. Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FrameChange::document_ready is never set

7 participants