Commit 5ba2fce
apollo_storage: remove stale allow(dead_code) (#14375)
Four `#[allow(dead_code)]` annotations on table-type methods were stale; the
methods all have production (non-test) callers, so the dead_code lint never
fires for them:
- `DbWriter::create_common_prefix_table` (dup_sort_tables.rs): called in
`lib.rs` when opening storage (contract_storage, events, nonces,
compiled_class_hash tables).
- `append_greater_sub_key` (dup_sort_tables.rs): called in `body/mod.rs:545`
(events) and `state/mod.rs:875,920` (nonces, storage).
- `Table::append` trait method (table_types/mod.rs) and its `SimpleTable`
impl (simple_table.rs): called in `header.rs:331` and `body/mod.rs:508`.
Removed only the annotations; no behavior change. Verified that the lib build
and the test build both compile with no dead_code warnings.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3a75386 commit 5ba2fce
3 files changed
Lines changed: 0 additions & 4 deletions
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
348 | | - | |
349 | 347 | | |
350 | 348 | | |
351 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments