perry-ui-android: canvas.rs carries four unused items (dead-code warnings)

Open Beginner friendly
#15,220 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
76/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
mobile-dev

Research direction

Open crates/perry-ui-android/src/widgets/canvas.rs and confirm the four symbols (JS_TAG_TRUE, js_object_alloc, js_nanbox_pointer, js_promise_resolved) are declared there; grep the crate and workspace first to be sure nothing else references them, and read #15153 / PR #15212 for why the canvas code changed. Remove the unused items (or wire them in only if the canvas code clearly intended to use them), then build perry-ui-android for the aarch64-linux-android target. Done means that build reports no dead-code warnings for these four items.

Written by the indexing model from the issue text.

Description

area:stdlib effort:S impact:low platform:android type:chore

Building perry-ui-android for aarch64-linux-android on main warns that crates/perry-ui-android/src/widgets/canvas.rs never uses JS_TAG_TRUE, js_object_alloc, js_nanbox_pointer and js_promise_resolved. Delete them, or use them if the canvas code was meant to.

Found while fixing #15153 (PR #15212).

Dominant language
Rust
Stars
4.9k
Forks
166
Avg merge
6h 59m
Merged PRs (30d)
955

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PerryTS/perry

All issues in PerryTS/perry

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.