Commit 2b3ee67
authored
Clean up
# Objective
- Part of #20115
We don't actually need the `ScheduleGraph` in order to get the kind of a
node, so lets move it to our newly created trait.
## Solution
- Removed `ScheduleGraph::get_node_kind`, added `GraphNodeId::kind`
instead.
- Co-located `GraphNodeId` in the same file as
`DiGraph`/`UnGraph`/`Graph`.
- Implemented `GraphNodeId` for `SystemSetKey` for symmetry.
No migration guide needed as `get_node_kind` is a private function.
## Testing
Re-using current tests.NodeId kind fetching (#20196)1 parent 9d4bfdb commit 2b3ee67
File tree
6 files changed
+52
-43
lines changed- crates/bevy_ecs/src/schedule
- graph
6 files changed
+52
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| |||
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
58 | | - | |
| 76 | + | |
59 | 77 | | |
60 | 78 | | |
61 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | | - | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
261 | 274 | | |
262 | 275 | | |
263 | 276 | | |
| |||
324 | 337 | | |
325 | 338 | | |
326 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
327 | 347 | | |
328 | 348 | | |
329 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | 1446 | | |
1454 | 1447 | | |
1455 | 1448 | | |
| |||
1481 | 1474 | | |
1482 | 1475 | | |
1483 | 1476 | | |
1484 | | - | |
| 1477 | + | |
1485 | 1478 | | |
1486 | 1479 | | |
1487 | 1480 | | |
| |||
1585 | 1578 | | |
1586 | 1579 | | |
1587 | 1580 | | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1594 | 1584 | | |
1595 | 1585 | | |
1596 | 1586 | | |
| |||
0 commit comments