Commit 6f97b45
committed
Refactor: subtractive cleanup of bloated code
- Extracted `GetDefaultBitmapProps` helper to remove duplicate D2D1 properties initialization in `RenderEngine.cpp`.
- Combined multiple `if (!deferZoomResizeSync)` conditions to remove AST duplication and dead code blocks in `main.cpp`.
- Removed unused variables from the `IsLikelyShellIconFallback` validation method and updated its call site in `main.cpp`.
- Removed redundant header includes in `ImageLoader.cpp` to optimize compilation.1 parent 34b9aa7 commit 6f97b45
3 files changed
Lines changed: 20 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
581 | 580 | | |
582 | 581 | | |
583 | 582 | | |
584 | | - | |
585 | 583 | | |
586 | 584 | | |
587 | 585 | | |
588 | 586 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | 587 | | |
595 | 588 | | |
596 | 589 | | |
| |||
600 | 593 | | |
601 | 594 | | |
602 | 595 | | |
603 | | - | |
604 | 596 | | |
605 | 597 | | |
606 | 598 | | |
607 | 599 | | |
608 | 600 | | |
609 | | - | |
610 | 601 | | |
611 | 602 | | |
612 | 603 | | |
| |||
7392 | 7383 | | |
7393 | 7384 | | |
7394 | 7385 | | |
7395 | | - | |
7396 | 7386 | | |
7397 | 7387 | | |
7398 | 7388 | | |
| |||
8700 | 8690 | | |
8701 | 8691 | | |
8702 | 8692 | | |
8703 | | - | |
8704 | 8693 | | |
8705 | 8694 | | |
8706 | 8695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | 133 | | |
| |||
149 | 162 | | |
150 | 163 | | |
151 | 164 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 165 | + | |
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
| |||
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5837 | 5837 | | |
5838 | 5838 | | |
5839 | 5839 | | |
5840 | | - | |
5841 | | - | |
5842 | | - | |
5843 | | - | |
5844 | | - | |
| 5840 | + | |
| 5841 | + | |
5845 | 5842 | | |
5846 | 5843 | | |
5847 | 5844 | | |
| |||
9075 | 9072 | | |
9076 | 9073 | | |
9077 | 9074 | | |
9078 | | - | |
9079 | | - | |
9080 | | - | |
9081 | | - | |
| 9075 | + | |
9082 | 9076 | | |
9083 | 9077 | | |
9084 | 9078 | | |
| |||
9190 | 9184 | | |
9191 | 9185 | | |
9192 | 9186 | | |
9193 | | - | |
| 9187 | + | |
9194 | 9188 | | |
9195 | 9189 | | |
9196 | 9190 | | |
| |||
0 commit comments