Remove unused members
Clang found two problems with this from QWaylandDataDeviceManager. First, it's a class, not a struct. Second, nothing is using this private member. qwaylanddatadevicemanager_p.h:66:5: warning: struct 'wl_data_device_manager' was previously declared as a class [-Wmismatched-tags] qwaylanddatadevicemanager_p.h:66:36: warning: private field 'm_data_device_manager' is not used [-Wunused-private-field] And also this one: qwaylandextendedoutput_p.h:61:21: warning: private field 'm_screen' is not used [-Wunused-private-field] Change-Id: Ifc8f28f92190547dcb0a5319aa6fc14277894f15 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
This commit is contained in:
parent
d2e278e4e2
commit
68a6cf54a0
@ -63,7 +63,6 @@ public:
|
||||
QWaylandDisplay *display() const;
|
||||
|
||||
private:
|
||||
struct wl_data_device_manager *m_data_device_manager;
|
||||
QWaylandDisplay *m_display;
|
||||
};
|
||||
|
||||
|
@ -51,8 +51,8 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
QWaylandExtendedOutput::QWaylandExtendedOutput(QWaylandScreen *screen, ::qt_extended_output *extended_output)
|
||||
: QtWayland::qt_extended_output(extended_output)
|
||||
, m_screen(screen)
|
||||
{
|
||||
Q_UNUSED(screen);
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -55,10 +55,6 @@ class Q_WAYLAND_CLIENT_EXPORT QWaylandExtendedOutput : public QtWayland::qt_exte
|
||||
{
|
||||
public:
|
||||
QWaylandExtendedOutput(QWaylandScreen *screen, struct ::qt_extended_output *extended_output);
|
||||
|
||||
private:
|
||||
|
||||
QWaylandScreen *m_screen;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
x
Reference in New Issue
Block a user