diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-20 19:34:30 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-20 19:40:01 +0100 |
| commit | 1055e6bee677ef9c4ab4d09e43155e00a98a3b49 (patch) | |
| tree | a904d11c1cced96abaab7db50b3ef26ea6aa3ed1 /src/protocols/WaylandProtocol.hpp | |
| parent | 84ee839ca690c89dc9498e85eefcdec265d3a765 (diff) | |
wayland-protocol: remove unused CWaylandResource
Diffstat (limited to 'src/protocols/WaylandProtocol.hpp')
| -rw-r--r-- | src/protocols/WaylandProtocol.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/protocols/WaylandProtocol.hpp b/src/protocols/WaylandProtocol.hpp index cc8a0e53..588a1420 100644 --- a/src/protocols/WaylandProtocol.hpp +++ b/src/protocols/WaylandProtocol.hpp @@ -14,34 +14,6 @@ #define PROTO NProtocols -class CWaylandResource { - public: - CWaylandResource(wl_client* client, const wl_interface* wlInterface, uint32_t version, uint32_t id); - ~CWaylandResource(); - - bool good(); - wl_resource* resource(); - uint32_t version(); - - void setImplementation(const void* impl, wl_resource_destroy_func_t df); - - wl_listener m_liResourceDestroy; // private but has to be public - void markDefunct(); - - void* data(); - void setData(void* data); - - void setOnDestroyHandler(std::function<void(CWaylandResource* res)> fn); - - private: - bool m_bImplementationSet = false; - bool m_bDefunct = false; // m_liResourceDestroy fired - wl_client* m_pWLClient = nullptr; - wl_resource* m_pWLResource = nullptr; - void* m_pData = nullptr; - std::function<void(CWaylandResource* res)> m_fOnDestroyHandler; -}; - class IWaylandProtocol { public: IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name); |
