diff --git a/src/client/qwaylandwindow_p.h b/src/client/qwaylandwindow_p.h
index 3f35a1eba3f0ae7de3e57126b24f94213ebe4baa..a905641f3d6c060371350faf02ef47f7add96923 100644
--- a/src/client/qwaylandwindow_p.h
+++ b/src/client/qwaylandwindow_p.h
@@ -120,7 +120,6 @@ public:
     using QtWayland::wl_surface::attach;
     void attach(QWaylandBuffer *buffer, int x, int y);
     void attachOffset(QWaylandBuffer *buffer);
-    QWaylandBuffer *attached() const;
     QPoint attachOffset() const;
 
     using QtWayland::wl_surface::damage;