Commit 0aec17f
committed
[Win32] Remove obsolete checks for non-supported Windows versions #2011
With introducing an explicit minimum supported OS version for Windows,
all code guards for older than the minimum supported Windows version
became obsolete.
This change removes those guards and those OS methods that became
unused. It also makes those methods, whose calls are not version-guarded
anymore, statically instead of dynamically linked. This fixes some issue
with wrong values returned by the AdjustWindowRectExForDpi method when
used via dynamic linking.
Fixes eclipse-platform/eclipse.platform.ui#2852
Fixes #20111 parent 1d4db25 commit 0aec17f
File tree
8 files changed
+10
-86
lines changed- bundles/org.eclipse.swt
- Eclipse SWT PI/win32
- library
- org/eclipse/swt/internal/win32
- Eclipse SWT/win32/org/eclipse/swt
- internal
- widgets
8 files changed
+10
-86
lines changedLines changed: 0 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 111 | | |
128 | 112 | | |
129 | 113 | | |
| |||
132 | 116 | | |
133 | 117 | | |
134 | 118 | | |
135 | | - | |
136 | 119 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 120 | | |
145 | 121 | | |
146 | 122 | | |
| |||
3320 | 3296 | | |
3321 | 3297 | | |
3322 | 3298 | | |
3323 | | - | |
3324 | 3299 | | |
3325 | | - | |
3326 | | - | |
3327 | | - | |
3328 | | - | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
3332 | 3300 | | |
3333 | 3301 | | |
3334 | 3302 | | |
| |||
9329 | 9297 | | |
9330 | 9298 | | |
9331 | 9299 | | |
9332 | | - | |
9333 | 9300 | | |
9334 | | - | |
9335 | | - | |
9336 | | - | |
9337 | | - | |
9338 | | - | |
9339 | | - | |
9340 | | - | |
9341 | 9301 | | |
9342 | 9302 | | |
9343 | 9303 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | | - | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
2353 | 2351 | | |
2354 | 2352 | | |
2355 | 2353 | | |
2356 | | - | |
2357 | | - | |
2358 | 2354 | | |
2359 | 2355 | | |
2360 | 2356 | | |
| |||
3006 | 3002 | | |
3007 | 3003 | | |
3008 | 3004 | | |
3009 | | - | |
3010 | 3005 | | |
3011 | 3006 | | |
3012 | 3007 | | |
| |||
4496 | 4491 | | |
4497 | 4492 | | |
4498 | 4493 | | |
4499 | | - | |
4500 | 4494 | | |
4501 | 4495 | | |
4502 | 4496 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
2236 | | - | |
2237 | | - | |
2238 | | - | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
2239 | 2237 | | |
2240 | 2238 | | |
2241 | 2239 | | |
| |||
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 536 | + | |
541 | 537 | | |
542 | 538 | | |
543 | 539 | | |
| |||
5396 | 5392 | | |
5397 | 5393 | | |
5398 | 5394 | | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | | - | |
5403 | 5395 | | |
5404 | 5396 | | |
5405 | 5397 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2703 | 2703 | | |
2704 | 2704 | | |
2705 | 2705 | | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
2710 | | - | |
2711 | | - | |
2712 | | - | |
| 2706 | + | |
2713 | 2707 | | |
2714 | 2708 | | |
2715 | 2709 | | |
2716 | | - | |
2717 | | - | |
2718 | | - | |
2719 | | - | |
2720 | | - | |
2721 | | - | |
2722 | | - | |
| 2710 | + | |
2723 | 2711 | | |
2724 | 2712 | | |
2725 | 2713 | | |
| |||
0 commit comments