Repository navigation
Remove FrameChange::document_ready - #14724
Conversation
|
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. |
|
Heads up! This PR modifies the following files:
|
|
@bors-servo r+ |
|
📌 Commit 95552c4 has been approved by |
…=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 -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
| .map(|frame| frame.current.pipeline_id); | ||
| let current_pipeline_id_loaded = current_pipeline_id | ||
| .map(|id| (id, true)); | ||
| .map(|id| id); |
There was a problem hiding this comment.
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 :).
There was a problem hiding this comment.
Good catch, it looks like it is not needed anymore. (I may be wrong as well :) )
There was a problem hiding this comment.
A PR to remove current_pipeline_id_loaded would be welcome :)
There was a problem hiding this comment.
Yes, this used to do something, back when it was map(|id| (id, true)). Now it's pointless. Good catch.
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