drop checking for XF86_LEASE_VERSION

It's always defined for about 7 years now. No need to keep special
hacks for ancient Xservers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-29 14:28:55 +02:00
committed by Enrico Weigelt
parent f1d32a31ea
commit 62898aa380

View File

@@ -2994,7 +2994,6 @@ fail:
static void
drmmode_validate_leases(ScrnInfoPtr scrn)
{
#ifdef XF86_LEASE_VERSION
ScreenPtr screen = scrn->pScreen;
rrScrPrivPtr scr_priv = rrGetScrPriv(screen);
AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(scrn);
@@ -3027,11 +3026,8 @@ drmmode_validate_leases(ScrnInfoPtr scrn)
}
free(lessees);
#endif
}
#ifdef XF86_LEASE_VERSION
static int
drmmode_create_lease(RRLeasePtr lease, int *fd)
{
@@ -3116,14 +3112,10 @@ drmmode_terminate_lease(RRLeasePtr lease)
}
}
#endif // XF86_LEASE_VERSION
static const xf86CrtcConfigFuncsRec drmmode_xf86crtc_config_funcs = {
.resize = drmmode_xf86crtc_resize,
#ifdef XF86_LEASE_VERSION
.create_lease = drmmode_create_lease,
.terminate_lease = drmmode_terminate_lease
#endif
};
static void