diff --git a/src/wayland/clientconnection.cpp b/src/wayland/clientconnection.cpp index 14a63763ca..1ea7d38db3 100644 --- a/src/wayland/clientconnection.cpp +++ b/src/wayland/clientconnection.cpp @@ -99,14 +99,6 @@ void ClientConnection::destroy() wl_client_destroy(d->client); } -wl_resource *ClientConnection::createResource(const wl_interface *interface, quint32 version, quint32 id) -{ - if (!d->client) { - return nullptr; - } - return wl_resource_create(d->client, interface, version, id); -} - wl_resource *ClientConnection::getResource(quint32 id) { if (!d->client) { diff --git a/src/wayland/clientconnection.h b/src/wayland/clientconnection.h index d84b2c9105..290b3db2e7 100644 --- a/src/wayland/clientconnection.h +++ b/src/wayland/clientconnection.h @@ -12,7 +12,6 @@ #include struct wl_client; -struct wl_interface; struct wl_resource; namespace KWaylandServer @@ -40,17 +39,6 @@ public: * Flushes the connection to this client. Ensures that all events are pushed to the client. */ void flush(); - /** - * Creates a new wl_resource for the provided @p interface. - * - * Thus a convenient wrapper around wl_resource_create - * - * @param interface - * @param version - * @param id - * @returns the created native wl_resource - */ - wl_resource *createResource(const wl_interface *interface, quint32 version, quint32 id); /** * Get the wl_resource associated with the given @p id. */