Commit 211be8c
authored
[NFC] Remove redundant
### Motivation:
This protocol doesn't define any requirements and was used for
nemaspacing a single tuple typealias. Instead of typealiasing this
fairly complex and pervasively used tuple, we should define a separate
struct for it. Then the protocol itself can be removed as completely
unused.
### Modifications:
Defined new `struct DependencyResolverBinding` with cleanly named
fields, which now avoids expressions that look like `binding.binding`
and re-declaration of this tuple in multiple places.
One other `typealias` in `protocol DependencyResolver` is unused, thus
the whole protocol is unused and now can be removed.
Also used this as an opportunity to clean up file naming and directory
layout in the `PackageGraph` module.
### Result:
This confusing protocol is removed from the codebase. Readability is
improved with explicit struct field names instead of ad-hoc tuple use.
Directory layout makes it more obvious the purpose of specific files for
potential new contributors and for existing contributors when reviewing
code retrospectively.DependencyResolver protocol (#7127)1 parent ce159ca commit 211be8c
20 files changed
Lines changed: 115 additions & 80 deletions
File tree
- Sources
- PackageGraph
- Resolution
- PubGrub
- Workspace
- Tests
- PackageGraphPerformanceTests
- PackageGraphTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 6 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 19 | | |
39 | 20 | | |
40 | 21 | | |
| |||
44 | 25 | | |
45 | 26 | | |
46 | 27 | | |
47 | | - | |
| 28 | + | |
48 | 29 | | |
49 | 30 | | |
50 | 31 | | |
| |||
82 | 63 | | |
83 | 64 | | |
84 | 65 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
88 | 69 | | |
89 | 70 | | |
90 | 71 | | |
| |||
129 | 110 | | |
130 | 111 | | |
131 | 112 | | |
132 | | - | |
| 113 | + | |
133 | 114 | | |
134 | 115 | | |
135 | 116 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
File renamed without changes.
0 commit comments