Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove FrameChange::document_ready #14724
Conversation
highfive
commented
Dec 25, 2016
|
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
commented
Dec 25, 2016
|
Heads up! This PR modifies the following files:
|
|
@bors-servo r+ |
|
|
…=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 -->
|
|
| let frame_id = frame_id.unwrap_or(self.root_frame_id); | ||
| let current_pipeline_id = self.frames.get(&frame_id) | ||
| .map(|frame| frame.current.pipeline_id); | ||
| let current_pipeline_id_loaded = current_pipeline_id | ||
| .map(|id| (id, true)); | ||
| .map(|id| id); |
This comment has been minimized.
This comment has been minimized.
fflorent
Jan 2, 2017
•
Contributor
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 :).
This comment has been minimized.
This comment has been minimized.
zaynetro
Jan 2, 2017
Author
Good catch, it looks like it is not needed anymore. (I may be wrong as well :) )
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asajeffrey
Jan 3, 2017
Member
Yes, this used to do something, back when it was map(|id| (id, true)). Now it's pointless. Good catch.
zaynetro commentedDec 25, 2016
•
edited by larsbergstrom
Remove unused
FrameChange::document_readyfield and remove unused boolean inConstellationMsg::GetPipeline's second argument../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is