Commit 65f7382
authored
[nightshift] Remove dead functions and orphaned imports (#4390)
> *Dead branches pruned—*
> *the forest breathes easier,*
> *roots drink deeper now.*
## Summary
Removed 5 private functions (85 lines) that are defined but never called
anywhere in the
codebase, confirmed via whole-repo grep. Also removed 3 imports (`re`,
`jax`, `jax.numpy`)
and 1 import (`get_scheduling_strategy`) that only served the dead code.
| File | Removed | Age |
|---|---|---|
| `rl/environments/inference_ctx/vllm.py` |
`_convert_vllm_state_dict_to_trainer_keys` (39 lines),
`_check_weight_differences` (12 lines) + imports `re`, `jax`,
`jax.numpy` | Nov 2025 — leftover debugging helpers from initial vLLM RL
integration |
| `processing/classification/autoscaler.py` |
`_cleanup_completed_futures` (14 lines) | Nov 2025 — superseded by
`_result_collector_loop` |
| `evaluation/evaluators/evaluator.py` | `_get_scheduling_strategy` (4
lines) + import `get_scheduling_strategy` | Nov 2025 — never called by
any `Evaluator` subclass |
| `profiling/ingest.py` | `_active_category` (5 lines) | Feb 2026 —
superseded by `_active_device_category` |1 parent f3f2c4d commit 65f7382
4 files changed
Lines changed: 0 additions & 85 deletions
File tree
- lib/marin/src/marin
- evaluation/evaluators
- processing/classification
- profiling
- rl/environments/inference_ctx
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 60 | | |
67 | 61 | | |
68 | 62 | | |
| |||
Lines changed: 0 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 376 | | |
393 | 377 | | |
394 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
1543 | 1536 | | |
1544 | 1537 | | |
1545 | 1538 | | |
| |||
Lines changed: 0 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 150 | | |
207 | 151 | | |
208 | 152 | | |
| |||
0 commit comments