Commit fcd3b27
Remove dead Diem code from PoS types: resources, constants, and unused crate
Remove standalone dead code:
- effects.rs from move-core-types (unused module)
- fallible/ crate (unused, no dependents)
Remove all 15 Diem financial resource files (account_config/resources/):
AccountResource, BalanceResource, ChainIdResource, CurrencyInfoResource,
DesignatedDealer, Credential, FreezingBit, KeyRotationCapabilityResource,
PreburnResource, PreburnQueueResource, PreburnWithMetadata, AccountRole,
RoleId, ParentVASP/ChildVASP, WithdrawCapabilityResource — none are used
in production (the PoS executor never reads or writes these types).
Remove unused constants (event.rs, partial diem.rs cleanup) and 13 unused
getters from account_state.rs. Update proptest code to not depend on
removed types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3dac3c1 commit fcd3b27
File tree
31 files changed
+30
-1503
lines changed- crates/pos
- common/fallible
- src
- storage/pos-ledger-db/src
- types
- move-core-types/src
- types/src
- account_config
- constants
- resources
31 files changed
+30
-1503
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
Lines changed: 1 addition & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 9 | + | |
36 | 10 | | |
37 | 11 | | |
38 | 12 | | |
| |||
0 commit comments