Skip to content

Commit 8c52287

Browse files
committed
Stepper: remove unused subclass
This can be added back in when needed. It is unlikely since the messages get handled through the proxy for the dispatching.
1 parent 575a9dc commit 8c52287

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/SwiftWin32/Views and Controls/Stepper.swift

-8
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ private class StepperProxy {
5858
}
5959

6060

61-
private let SwiftStepperProc: SUBCLASSPROC = { (hWnd, uMsg, wParam, lParam, uIdSubclass, dwRefData) in
62-
let stepper: Stepper? =
63-
unsafeBitCast(dwRefData, to: AnyObject.self) as? Stepper
64-
return DefSubclassProc(hWnd, uMsg, wParam, lParam)
65-
}
66-
6761
/// A control for incrementing or decrementing a value.
6862
public class Stepper: Control {
6963
private static let `class`: WindowClass = WindowClass(named: UPDOWN_CLASS)
@@ -169,8 +163,6 @@ public class Stepper: Control {
169163

170164
_ = SetWindowLongPtrW(self.hWnd, GWLP_USERDATA,
171165
unsafeBitCast(self as AnyObject, to: LONG_PTR.self))
172-
_ = SetWindowSubclass(self.hWnd, SwiftStepperProc, UINT_PTR(1),
173-
unsafeBitCast(self as AnyObject, to: DWORD_PTR.self))
174166

175167
defer {
176168
self.wraps = false

0 commit comments

Comments
 (0)