drop own copy of RegionDuplicate()

This function is present in the Xserver for way over a decade, so no
need to carry around our own copy anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-29 12:26:59 +02:00
committed by Enrico Weigelt
parent 5e9f88232f
commit cd40763e9f
2 changed files with 0 additions and 25 deletions

View File

@@ -150,12 +150,6 @@ else
fi
AM_CONDITIONAL(GLAMOR, test x$GLAMOR != xno)
AC_CHECK_DECL(RegionDuplicate,
[AC_DEFINE(HAVE_REGIONDUPLICATE, 1,
[Have RegionDuplicate API])], [],
[#include <xorg-server.h>
#include <regionstr.h>])
AC_CHECK_DECL(xf86CursorResetCursor,
[AC_DEFINE(HAVE_XF86_CURSOR_RESET_CURSOR, 1,
[Have xf86CursorResetCursor API])], [],

View File

@@ -89,25 +89,6 @@
struct _SyncFence;
#ifndef HAVE_REGIONDUPLICATE
static inline RegionPtr
RegionDuplicate(RegionPtr pOld)
{
RegionPtr pNew;
pNew = RegionCreate(&pOld->extents, 0);
if (!pNew)
return NULL;
if (!RegionCopy(pNew, pOld)) {
RegionDestroy(pNew);
return NULL;
}
return pNew;
}
#endif
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif