From 224bcf234d6c270acdeca5c72f7ab885d60ffb2b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 17:57:50 +0200 Subject: [PATCH] xfree86: xf86Config: drop unused xf86DRI2Enabled() Not used anywhere, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 1 - hw/xfree86/common/xf86Config.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 6fa96c6f8..7f3bd277b 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -73,7 +73,6 @@ extern _X_EXPORT int platformSlotClaimed; #endif extern _X_EXPORT confDRIRec xf86ConfigDRI; -extern _X_EXPORT Bool xf86DRI2Enabled(void); #define XF86SCRNINFO(p) xf86ScreenToScrn(p) diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index d85898b91..21cf3a80b 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -972,12 +972,6 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts) LimitClients, RESOURCE_ID_MASK); } -Bool -xf86DRI2Enabled(void) -{ - return xf86Info.dri2; -} - /** * Search for the pInfo in the null-terminated list given and remove (and * free) it if present. All other devices are moved forward.