Commit c901518
authored
chore: remove allDetectedTokens Card references (#30236)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until this PR meets the canonical
Definition of Ready For Review in `docs/readme/ready-for-review.md`.
In short: the template must be materially complete (not just section
titles
present), all status checks must be currently passing, and the only
expected
follow-up commits must be reviewer-driven.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
`allDetectedTokens` has been deprecated and empty for a long time. We
are now removing all remaining references to that piece of state since
we are in the process of deprecating many assets controllers.
This should not have any effect in the app, as the content of that piece
of state is always empty.
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: null
## **Related issues**
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3197
## **Manual testing steps**
```gherkin
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
<!--
Every checklist item must be consciously assessed before marking this PR
as
"Ready for review". A checked box means you deliberately considered that
responsibility, not that you literally performed every action listed.
Unchecked boxes are ambiguous: they are not an implicit "N/A" and they
are not
a silent "skip". See `docs/readme/ready-for-review.md` for the full
checklist
semantics.
-->
- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I've included tests if applicable
- [X] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
#### Performance checks (if applicable)
- [ ] I've tested on Android
- Ideally on a mid-range device; emulator is acceptable
- [ ] I've tested with a power user scenario
- Use these [power-user
SRPs](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/edit-v2/401401446401?draftShareId=9d77e1e1-4bdc-4be1-9ebb-ccd916988d93)
to import wallets with many accounts and tokens
- [ ] I've instrumented key operations with Sentry traces for production
performance metrics
- See [`trace()`](/app/util/trace.ts) for usage and
[`addToken`](/app/components/Views/AddAsset/components/AddCustomToken/AddCustomToken.tsx#L274)
for an example
For performance guidelines and tooling, see the [Performance
Guide](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085549067/Performance+Guide+for+Engineers).
## **Pre-merge reviewer checklist**
<!--
Reviewer checklist items follow the same semantics as the author
checklist: an
unchecked box is ambiguous, a checked box means the reviewer consciously
assessed that responsibility. See `docs/readme/ready-for-review.md`.
-->
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.1 parent 75d1e2b commit c901518
2 files changed
Lines changed: 1 addition & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | | - | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
| |||
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | | - | |
453 | 450 | | |
454 | 451 | | |
455 | 452 | | |
| |||
546 | 543 | | |
547 | 544 | | |
548 | 545 | | |
549 | | - | |
550 | 546 | | |
551 | 547 | | |
552 | 548 | | |
| |||
694 | 690 | | |
695 | 691 | | |
696 | 692 | | |
697 | | - | |
698 | 693 | | |
699 | 694 | | |
700 | 695 | | |
| |||
754 | 749 | | |
755 | 750 | | |
756 | 751 | | |
757 | | - | |
758 | 752 | | |
759 | 753 | | |
760 | 754 | | |
| |||
804 | 798 | | |
805 | 799 | | |
806 | 800 | | |
807 | | - | |
808 | 801 | | |
809 | 802 | | |
810 | 803 | | |
| |||
870 | 863 | | |
871 | 864 | | |
872 | 865 | | |
873 | | - | |
874 | 866 | | |
875 | 867 | | |
876 | 868 | | |
| |||
1017 | 1009 | | |
1018 | 1010 | | |
1019 | 1011 | | |
1020 | | - | |
1021 | 1012 | | |
1022 | 1013 | | |
1023 | 1014 | | |
| |||
1089 | 1080 | | |
1090 | 1081 | | |
1091 | 1082 | | |
1092 | | - | |
1093 | 1083 | | |
1094 | 1084 | | |
1095 | 1085 | | |
| |||
1161 | 1151 | | |
1162 | 1152 | | |
1163 | 1153 | | |
1164 | | - | |
1165 | 1154 | | |
1166 | 1155 | | |
1167 | 1156 | | |
| |||
1233 | 1222 | | |
1234 | 1223 | | |
1235 | 1224 | | |
1236 | | - | |
1237 | 1225 | | |
1238 | 1226 | | |
1239 | 1227 | | |
| |||
1291 | 1279 | | |
1292 | 1280 | | |
1293 | 1281 | | |
1294 | | - | |
1295 | 1282 | | |
1296 | 1283 | | |
1297 | 1284 | | |
| |||
1356 | 1343 | | |
1357 | 1344 | | |
1358 | 1345 | | |
1359 | | - | |
1360 | 1346 | | |
1361 | 1347 | | |
1362 | 1348 | | |
| |||
1426 | 1412 | | |
1427 | 1413 | | |
1428 | 1414 | | |
1429 | | - | |
1430 | 1415 | | |
1431 | 1416 | | |
1432 | 1417 | | |
| |||
1496 | 1481 | | |
1497 | 1482 | | |
1498 | 1483 | | |
1499 | | - | |
1500 | 1484 | | |
1501 | 1485 | | |
1502 | 1486 | | |
| |||
1877 | 1861 | | |
1878 | 1862 | | |
1879 | 1863 | | |
1880 | | - | |
1881 | 1864 | | |
1882 | 1865 | | |
1883 | 1866 | | |
| |||
1944 | 1927 | | |
1945 | 1928 | | |
1946 | 1929 | | |
1947 | | - | |
1948 | 1930 | | |
1949 | 1931 | | |
1950 | 1932 | | |
| |||
2012 | 1994 | | |
2013 | 1995 | | |
2014 | 1996 | | |
2015 | | - | |
2016 | 1997 | | |
2017 | 1998 | | |
2018 | 1999 | | |
| |||
2079 | 2060 | | |
2080 | 2061 | | |
2081 | 2062 | | |
2082 | | - | |
2083 | 2063 | | |
2084 | 2064 | | |
2085 | 2065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | | - | |
128 | 123 | | |
129 | 124 | | |
130 | 125 | | |
| |||
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 137 | | |
155 | 138 | | |
156 | 139 | | |
| |||
159 | 142 | | |
160 | 143 | | |
161 | 144 | | |
162 | | - | |
| 145 | + | |
163 | 146 | | |
164 | 147 | | |
165 | 148 | | |
| |||
0 commit comments