macOS: Remove unneeded Objective-C instance variable declarations

And their corresponding synthesizations. The compiler will take care
of it for us.

Change-Id: Ifa42e0732059008af6f3f65151bf203a1a19079d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2017-04-19 14:24:33 +02:00
parent 85cbd35178
commit d95414171f
2 changed files with 0 additions and 9 deletions

View File

@ -75,7 +75,6 @@ typedef NSWindow<QNSWindowProtocol> QCocoaNSWindow;
@interface QT_MANGLE_NAMESPACE(QNSWindowHelper) : NSObject @interface QT_MANGLE_NAMESPACE(QNSWindowHelper) : NSObject
{ {
QCocoaNSWindow *_window;
QPointer<QCocoaWindow> _platformWindow; QPointer<QCocoaWindow> _platformWindow;
} }
@ -94,9 +93,6 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindowHelper);
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@interface QT_MANGLE_NAMESPACE(QNSWindow) : NSWindow<QNSWindowProtocol> @interface QT_MANGLE_NAMESPACE(QNSWindow) : NSWindow<QNSWindowProtocol>
{
QNSWindowHelper *_helper;
}
@end @end
QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow); QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow);
@ -104,9 +100,6 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow);
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@interface QT_MANGLE_NAMESPACE(QNSPanel) : NSPanel<QNSWindowProtocol> @interface QT_MANGLE_NAMESPACE(QNSPanel) : NSPanel<QNSWindowProtocol>
{
QNSWindowHelper *_helper;
}
@end @end
QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSPanel); QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSPanel);

View File

@ -89,8 +89,6 @@ static bool isMouseEvent(NSEvent *ev)
@implementation QNSWindowHelper @implementation QNSWindowHelper
@synthesize window = _window;
- (QCocoaWindow *)platformWindow - (QCocoaWindow *)platformWindow
{ {
return _platformWindow.data(); return _platformWindow.data();