wayland: Drop ScopedGlobalPointer

This commit is contained in:
Vlad Zahorodnii 2022-10-20 12:39:29 +03:00
parent 7115ea75a4
commit 624886f0de

View file

@ -11,26 +11,12 @@
#include <QRegion>
#include <limits>
#include <memory>
#include <type_traits>
struct wl_resource;
namespace KWaylandServer
{
template<typename T>
struct SafeGlobalDeleter
{
void operator()(T *global)
{
if (global) {
global->remove();
}
}
};
template<typename T>
using ScopedGlobalPointer = std::unique_ptr<T, SafeGlobalDeleter<T>>;
/**
* Returns an infinite region.