Drop ClientConnection::createResource()

It's leftover after now gone Global and Resource.
This commit is contained in:
Vlad Zahorodnii 2021-07-28 14:21:11 +03:00
parent 0ed5f6f096
commit ba3f587200
2 changed files with 0 additions and 20 deletions

View file

@ -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) {

View file

@ -12,7 +12,6 @@
#include <KWaylandServer/kwaylandserver_export.h>
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.
*/