summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-14 17:31:02 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-15 08:47:57 +0000
commitbc9389aba6575a739ccbb7de9c921439d9d6f246 (patch)
tree80ac7372a1c4bdbf2e0eb72d364d936bd7dcd064
parent992cde48d72435052514845b8add8d0dc880ccb2 (diff)
Compositor xdg-shell v6: Remove incorrect Q_UNUSEDs
Change-Id: Iddd6671316b3748e5156625f0dab1ee3d26e915a Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv6.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv6.cpp b/src/compositor/extensions/qwaylandxdgshellv6.cpp
index 8cde4668e..0772846fd 100644
--- a/src/compositor/extensions/qwaylandxdgshellv6.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellv6.cpp
@@ -1928,8 +1928,6 @@ void QWaylandXdgPositionerV6::zxdg_positioner_v6_destroy(QtWaylandServer::zxdg_p
void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_size(QtWaylandServer::zxdg_positioner_v6::Resource *resource, int32_t width, int32_t height)
{
- Q_UNUSED(resource);
-
if (width <= 0 || height <= 0) {
wl_resource_post_error(resource->handle, ZXDG_POSITIONER_V6_ERROR_INVALID_INPUT,
"zxdg_positioner_v6.set_size requested with non-positive dimensions");
@@ -1942,8 +1940,6 @@ void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_size(QtWaylandServer::zxdg_
void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_anchor_rect(QtWaylandServer::zxdg_positioner_v6::Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height)
{
- Q_UNUSED(resource);
-
if (width <= 0 || height <= 0) {
wl_resource_post_error(resource->handle, ZXDG_POSITIONER_V6_ERROR_INVALID_INPUT,
"zxdg_positioner_v6.set_anchor_rect requested with non-positive dimensions");
@@ -1956,8 +1952,6 @@ void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_anchor_rect(QtWaylandServer
void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_anchor(QtWaylandServer::zxdg_positioner_v6::Resource *resource, uint32_t anchor)
{
- Q_UNUSED(resource);
-
Qt::Edges anchorEdges = QWaylandXdgShellV6Private::convertToEdges(anchor);
if ((anchorEdges & Qt::BottomEdge && anchorEdges & Qt::TopEdge) ||
@@ -1972,7 +1966,6 @@ void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_anchor(QtWaylandServer::zxd
void QWaylandXdgPositionerV6::zxdg_positioner_v6_set_gravity(QtWaylandServer::zxdg_positioner_v6::Resource *resource, uint32_t gravity)
{
- Q_UNUSED(resource);
Qt::Edges gravityEdges = QWaylandXdgShellV6Private::convertToEdges(gravity);
if ((gravityEdges & Qt::BottomEdge && gravityEdges & Qt::TopEdge) ||