Commit d786da5
committed
Remove the unused StmtClone clone mapping. NFC
StmtCloneMapping recorded, for each cloned Stmt and VarDecl, the original
it came from. Nothing ever read either map, and no caller passed a
mapping in the first place -- the sole StmtClone is constructed without
one -- so m_OriginalToClonedStmts was permanently null and both writes
were dead.
Drop the struct, the member, the typedefs and the two writes. Cloning
that must remap references to its clones does so through
m_DeclReplacements, which the callers already maintain.1 parent 5e7d547 commit d786da5
2 files changed
Lines changed: 3 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
43 | | - | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
52 | 44 | | |
53 | 45 | | |
54 | 46 | | |
55 | | - | |
56 | | - | |
| 47 | + | |
| 48 | + | |
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
| |||
141 | 133 | | |
142 | 134 | | |
143 | 135 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 136 | | |
151 | 137 | | |
152 | 138 | | |
153 | 139 | | |
154 | 140 | | |
155 | 141 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 142 | | |
161 | 143 | | |
162 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
| 617 | + | |
621 | 618 | | |
622 | 619 | | |
623 | 620 | | |
| |||
0 commit comments